-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (50 loc) · 1.02 KB
/
build.gradle
File metadata and controls
59 lines (50 loc) · 1.02 KB
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
plugins() {
id('java')
id('maven-publish')
}
group('builderb0y')
version('6.0.2')
archivesBaseName = 'AutoCodec'
repositories() {
mavenCentral()
maven() {
url('https://libraries.minecraft.net')
}
}
dependencies() {
//versions of DFU that Minecraft actually uses:
//1.19.2 - 5.0.28
//1.19.4 - 6.0.6
//1.20.1 - 6.0.8
//1.20.5 - 7.0.14
//1.21.1 - 8.0.16
//1.21.4 - 8.0.16
implementation ('com.mojang:datafixerupper:8.0.16')
testImplementation('com.mojang:datafixerupper:8.0.16')
implementation ('org.jetbrains:annotations:23.0.0')
testImplementation('org.jetbrains:annotations:23.0.0')
testImplementation('junit:junit:4.13.2')
}
tasks.withType(JavaCompile).configureEach() {
it.options.compilerArgs.add('-parameters')
}
java() {
withSourcesJar()
toolchain() {
languageVersion = JavaLanguageVersion.of(17)
}
}
test() {
useJUnit()
}
publishing() {
publications() {
mavenJava(MavenPublication) {
from(components.java)
}
}
repositories() {
mavenLocal()
}
}
build.dependsOn(publishToMavenLocal)