forked from Tslat/SmartBrainLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (36 loc) · 799 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
38
39
40
41
42
43
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar()
repositories {
mavenCentral()
maven {
name = 'Sponge / Mixin'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
maven {
name = "NeoForge"
url = 'https://maven.neoforged.net'
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
publishing {
repositories {
maven {
name = "Cloudsmith"
url 'https://maven.cloudsmith.io/tslat/sbl/'
credentials {
username System.getenv("CLOUDSMITH_USERNAME")
password System.getenv("CLOUDSMITH_API_KEY")
}
}
}
}
}