-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
40 lines (33 loc) · 1.01 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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.1"
java
kotlin("jvm") version "1.6.10"
}
group = "com.github.sigureruri"
version = "1.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
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.12.2-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.5.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("")
}