-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (52 loc) · 1.47 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
import java.time.Instant
plugins {
id 'java'
id 'eclipse'
id 'net.minecraftforge.gradle.forge' version '2.3-SNAPSHOT'
}
group = 'info.tehnut'
version = '1.2.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url 'https://maven.tterrag.com' }
maven { url 'https://dvs1.progwml6.com/files/maven' }
}
dependencies {
implementation 'org.checkerframework:checker-qual:3.11.0'
deobfCompile 'team.chisel.ctm:CTM:MC1.12.2-1.0.2.31'
deobfCompile 'team.chisel:Chisel:MC1.12.2-1.0.2.45'
deobfCompile 'mezz.jei:jei_1.12.2:4.15.0.292'
}
minecraft {
forgeVersion = '1.12.2-14.23.5.2847'
mappings = 'stable_39'
runDir = 'run'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info', 'version.properties'
expand 'version': version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info', 'version.properties'
}
}
jar.manifest.attributes(
'Specification-Title': rootProject.name,
'Specification-Vendor': group,
'Specification-Version': 1,
'Implementation-Title': rootProject.name,
'Implementation-Vendor': group,
'Implementation-Version': version,
'Implementation-Timestamp': Instant.now().toString()
)
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.fork = true
options.verbose = true
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:all'
}
tasks.build.dependsOn sourceJar