forked from tebexio/Tebex-Minecraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (64 loc) · 2.06 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.github.johnrengelman.shadow") version "8.1.1"
id("fabric-loom") version "1.0-SNAPSHOT" apply false
}
defaultTasks("shadowJar")
group = "io.tebex"
version = "2.0.5"
subprojects {
plugins.apply("java")
plugins.apply("com.github.johnrengelman.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)
inputs.properties(props)
filteringCharset = "UTF-8"
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filesNotMatching("**/*.zip") {
expand(props)
}
}
}
val fabricProject = project(":fabric")
fabricProject.configure<JavaPluginExtension> {
sourceSets {
getByName("main") {
java {
srcDir("src/main/kotlin")
}
}
}
}