-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
107 lines (86 loc) · 2.74 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = "http://files.minecraftforge.net/maven" }
maven {
name "ModMaven"
url "https://modmaven.dev"
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'com.github.johnrengelman.shadow'
version = "1.12.2-${mayor}.${noapi}.${minor}.${patch}${extra}"
group = "arekkuusu.enderskills"
archivesBaseName = "EnderSkills"
compileJava.options.encoding = "UTF-8"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'snapshot', version: '20171003-1.12'
runs {
client {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
server {
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
}
}
repositories {
flatDir {
dirs 'lib'
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
compileOnly (name: "EventHelper-1.12.2-2.6.2-dev")
compile (name: "com.expression.parser-2.0.0")
implementation (name: "com.expression.parser-2.0.0")
shadow(name: 'com.expression.parser-2.0.0')
}
processResources {
}
sourceSets {
main {
output.resourcesDir = file('build/combined')
java.outputDir = file('build/combined')
}
}
jar {
manifest {
attributes([
"Specification-Title": "enderskills",
"Specification-Vendor": archivesBaseName,
"Specification-Version": version,
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" : archivesBaseName,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
project.tasks.build.dependsOn project.tasks.shadowJar
shadowJar {
project.configurations.shadow.setTransitive(true);
configurations = [project.configurations.shadow]
classifier ''
}
reobf {
shadowJar {}
}
artifacts {
archives shadowJar
}