-
Notifications
You must be signed in to change notification settings - Fork 36
/
build.gradle.kts
94 lines (83 loc) · 2.5 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.gradleup.shadow") version "8.3.1"
}
defaultTasks("shadowJar")
group = "io.tebex"
version = "2.1.0"
subprojects {
plugins.apply("java")
plugins.apply("com.gradleup.shadow")
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.named("shadowJar", ShadowJar::class.java) {
archiveFileName.set("tebex-${project.name}-${rootProject.version}.jar")
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "spigotmc-repo"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "sonatype"
}
maven("https://repo.opencollab.dev/main/") {
name = "opencollab-snapshot-repo"
}
maven("https://nexus.velocitypowered.com/repository/maven-public/") {
name = "velocity-repo"
}
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
name = "extendedclip-repo"
}
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-snapshots"
}
maven("https://maven.nucleoid.xyz/") {
name = "nucleoid"
}
}
tasks.named("processResources", Copy::class.java) {
val props = mapOf("version" to rootProject.version, "@VERSION@" to rootProject.version)
inputs.properties(props)
filteringCharset = "UTF-8"
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filesNotMatching("**/*.zip") {
expand(props)
}
}
}
val fabric1204Project = project(":fabric-1.20.4")
fabric1204Project.configure<JavaPluginExtension> {
sourceSets {
getByName("main") {
java {
srcDir("src/main/kotlin")
}
}
}
}
val fabric1201Project = project(":fabric-1.20.1")
fabric1201Project.configure<JavaPluginExtension> {
sourceSets {
getByName("main") {
java {
srcDir("src/main/kotlin")
}
}
}
}
val fabric1211Project = project(":fabric-1.21.1")
fabric1211Project.configure<JavaPluginExtension> {
sourceSets {
getByName("main") {
java {
srcDir("src/main/kotlin")
}
}
}
}