-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (41 loc) · 1.23 KB
/
build.gradle
File metadata and controls
47 lines (41 loc) · 1.23 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
plugins {
id "java-library"
id 'eclipse'
id 'idea'
id "maven-publish"
alias libs.plugins.modDevGradle
alias libs.plugins.spotless
alias libs.plugins.lombok
}
group = maven_group
version = mod_version
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
//NOTE ; Uncomment if GTM Snapshot source is being silly, rebuild and refresh, then recomment out. Having this here constantly isn't great of an idea
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
sourceSets {
// Include resources generated by data generators.
main.resources {
srcDir 'src/generated/resources'
}
}
apply from: "$rootDir/gradle/scripts/jars.gradle"
apply from: "$rootDir/gradle/scripts/moddevgradle.gradle"
apply from: "$rootDir/gradle/scripts/repositories.gradle"
apply from: "$rootDir/dependencies.gradle"
apply from: "$rootDir/gradle/scripts/resources.gradle"
apply from: "$rootDir/gradle/scripts/publishing.gradle"
apply from: "$rootDir/gradle/scripts/spotless.gradle"
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:-removal"
options.compilerArgs << "-Aquiet=true"
}
lombok {
version = "1.18.36"
}