This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (53 loc) · 1.76 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.5.30"
id("org.jmailen.kotlinter") version "3.5.1"
id("com.github.johnrengelman.shadow") version "7.0.0" apply false
id("net.minecrell.plugin-yml.bukkit") version "0.5.0" apply false
id("com.github.ben-manes.versions") version "0.39.0"
}
allprojects {
apply(plugin = "org.jmailen.kotlinter")
apply(plugin = "com.github.ben-manes.versions")
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "kotlin")
apply(plugin = "com.github.johnrengelman.shadow")
repositories {
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven(url = "https://oss.sonatype.org/content/groups/public/")
}
val shadowImplementation: Configuration by configurations.creating
configurations["implementation"].extendsFrom(shadowImplementation)
dependencies {
shadowImplementation(kotlin("stdlib"))
val minecraftVersion = when (17) {
8 -> "1.8.8"
9 -> "1.9.4"
10 -> "1.10.2"
11 -> "1.11.2"
12 -> "1.12.2"
13 -> "1.13.2"
14 -> "1.14.4"
15 -> "1.15.2"
16 -> "1.16.5"
17 -> "1.17.1"
else -> error("Unsupported Version")
}
implementation("org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT")
}
tasks.withType<ShadowJar> {
configurations = listOf(shadowImplementation)
archiveClassifier.set("")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
project(":api") {
apply(plugin = "net.minecrell.plugin-yml.bukkit")
}