-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
63 lines (56 loc) · 1.53 KB
/
build.gradle
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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
}
group 'com.flodoerr'
version '1.14.5'
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
mavenLocal() // This is needed for CraftBukkit and Spigot.
}
dependencies {
implementation 'com.beust:klaxon:5.6'
compileOnly 'org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT'
}
compileKotlin {
kotlinOptions.jvmTarget = "16"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "16"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': 'com.flodoerr.item_chest_sorter.ItemChestSorter'
)
}
from('src/main') {
include '*.yml'
}
baseName = 'ItemChestSorter'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
destinationDirectory.set(file(hasProperty('jarOutput') ? jarOutput : "."))
}
task releaseJar(type: Jar) {
destinationDirectory.set(file(buildDir))
baseName = 'ItemChestSorter'
with jar
}