forked from Ricky12Awesome/RiptideFix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (41 loc) · 1.1 KB
/
build.gradle.kts
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
@Suppress("PropertyName")
val minecraft_version: String by rootProject.extra
group = "com.github.ricky12awesome"
version = "2.0"
plugins {
java
}
subprojects {
apply<JavaPlugin>()
repositories {
maven("https://maven.terraformersmc.com/releases/")
mavenCentral()
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
jar {
archiveBaseName.set("riptide_fix")
archiveAppendix.set(minecraft_version)
archiveVersion.set(rootProject.version.toString())
manifest {
attributes(
"Specification-Title" to "riptide_fix",
"Specification-Vendor" to "Ricky12Awesome",
"Specification-Version" to "1",
"Implementation-Title" to rootProject.name,
"Implementation-Version" to rootProject.version,
"Implementation-Vendor" to "Ricky12Awesome",
)
}
destinationDirectory.set(rootProject.file("jars"))
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
targetCompatibility = "17"
sourceCompatibility = "17"
}
}
}