-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.02 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
plugins {
id 'java'
id 'idea'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
String pluginVersion = '1.1.0'
repositories {
mavenCentral()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18-pre8-R0.1-SNAPSHOT'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0'
}
group = 'xyz.atrius'
version = pluginVersion
description = 'Waystones'
sourceCompatibility = '1.8'
//noinspection GroovyAssignabilityCheck
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
shadowJar {
minimize()
archiveClassifier.set('')
archiveVersion.set(pluginVersion)
}