-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
37 lines (29 loc) · 927 Bytes
/
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
plugins {
id 'net.neoforged.gradleutils' version '3.0.0' apply false
id 'com.diffplug.spotless' version '6.22.0' apply false
}
apply plugin: 'net.neoforged.gradleutils'
project.version = '1.21.4-dev'
// Print version, generally useful to know - also appears on CI
System.out.println("NeoForge version ${project.version}")
allprojects {
version rootProject.version
group 'net.neoforged'
apply plugin: 'java'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:-dep-ann' << '-Xlint:-removal' << '-Xdiags:verbose'
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(project.java_version))
}
// Remove src/ sources from the root project. They are used in the neoforge subproject.
sourceSets {
main {
java {
srcDirs = []
}
resources {
srcDirs = []
}
}
}