forked from Tslat/TslatEntityStatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 986 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
44
45
46
47
48
49
50
51
52
53
54
55
56
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'
}
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
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/tes/'
credentials {
username System.getenv("CLOUDSMITH_USERNAME")
password System.getenv("CLOUDSMITH_API_KEY")
}
}
}
}
}