-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
52 lines (42 loc) · 1.52 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
plugins {
`java-library`
java
`maven-publish`
kotlin("jvm") version("1.9.23")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
allprojects {
project.ext.set("adventureVersion", "4.16.0")
project.ext.set("adventureBukkitVersion", "4.3.2")
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
group = "me.onlyjordon.swiftdisguise"
version = "v2.3.2"
description = ""
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
java {
withSourcesJar()
withJavadocJar()
toolchain.languageVersion.set(JavaLanguageVersion.of(if (System.getenv("JITPACK").toBoolean()) 11 else 17))
}
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://repo.papermc.io/repository/maven-public/")
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven(url = "https://repo.codemc.io/repository/maven-releases/")
maven(url = "https://repo.inventivetalent.org/repository/public/")
}
dependencies {
implementation("com.google.guava:guava:33.1.0-jre")
}
}
tasks.create("jitpackBuild", DefaultTask::class) {
dependsOn(childProjects["common"]!!.tasks.build)
dependsOn(childProjects["api"]!!.tasks.build)
dependsOn(childProjects["platform"]!!.childProjects["spigot"]!!.tasks.build)
group = "build"
}
tasks.build.get().finalizedBy(tasks.shadowJar.get())