-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (43 loc) · 1.2 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.21'
}
allprojects {
group 'de.d151l'
version '1.1'
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url 'https://jitpack.io' }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.kotlin.jvm'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compileOnly 'org.json:json:20220320'
compileOnly 'com.google.code.gson:gson:2.9.0'
compileOnly 'org.mongodb:mongodb-driver-legacy:4.6.1'
compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}