forked from SigureRuri/SpectatorTheater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (36 loc) · 1.11 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
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.github.jmongard.git-semver-plugin") version "0.12.13"
kotlin("jvm") version "2.0.21"
}
semver {
releaseTagNameFormat = "v%s"
}
group = "com.github.sigureruri"
version = semver.version
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.21")
}
tasks.getByName<ProcessResources>("processResources") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
tasks.getByName<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
}