-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (56 loc) · 1.42 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
64
65
66
67
68
69
70
71
72
73
buildscript {
ext.kotlin_version = "1.4.32"
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.4.32"
id "com.github.johnrengelman.shadow" version "6.0.0"
id "kr.entree.spigradle" version "2.2.3"
id "java-library"
}
group "com.gigadrivegroup"
version "1.0-SNAPSHOT"
def javaVersion = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
jcenter()
maven { url "https://gitlab.com/api/v4/projects/23841941/packages/maven" }
}
dependencies {
compileOnly spigot("1.16.5")
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
implementation "com.gigadrivegroup:kotlin-commons:1.2"
}
kotlin {
explicitApi()
}
// configures both compileKotlin and compileTestKotlin
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions.jvmTarget = javaVersion.toString()
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
withJavadocJar()
withSourcesJar()
}
tasks.shadowJar {
minimize()
}
tasks.build {
dependsOn(shadowJar)
}
spigot {
authors "Gigadrive UG"
apiVersion "1.16"
debug {
buildVersion = "1.16.5"
}
}