forked from Ellpeck/Nyx
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
executable file
·81 lines (68 loc) · 1.92 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven'
version = "1.6.1"
group = "de.ellpeck.nyx"
archivesBaseName = "Nyx"
if (System.getenv('BUILD_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER')
}
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
repositories {
mavenCentral()
maven {
url = "https://dvs1.progwml6.com/files/maven"
}
}
dependencies {
deobfCompile "mezz.jei:jei_1.12.2:4.16.1.302"
compileOnly "com.google.guava:guava:31+"
compileOnly "org.apache.commons:commons-lang3:3.12+"
compileOnly "org.apache.logging.log4j:log4j-core:2.17+"
compileOnly "io.netty:netty-all:4.1.77+"
deobfCompile "slimeknights.mantle:Mantle:1.12-1.3.3.55"
if (runInspirations.toBoolean()) {
deobfCompile(inspirationsString) { // run w/ inspirations
exclude group: 'mezz.jei'
}
} else {
compileOnly(inspirationsString) { // run w/o inspirations
exclude group: 'mezz.jei'
}
}
}
minecraft {
version = "1.12.2-14.23.5.2847"
mappings = "snapshot_20180720"
runDir = "run"
makeObfSourceJar = false
replaceIn "Nyx.java"
replace "@VERSION@", project.version.toString()
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
jar {
manifest {
attributes 'FMLAT': 'nyx_at.cfg'
}
}