-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.gradle
More file actions
37 lines (31 loc) · 930 Bytes
/
common.gradle
File metadata and controls
37 lines (31 loc) · 930 Bytes
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
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'java'
version '0.1'
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = "https://sparse.blue/maven/" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21"
compile "org.jetbrains.kotlin:kotlin-reflect:1.3.21"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1"
compileOnly 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT'
testCompileOnly 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT'
// project.parent.subprojects.each {
// if(it != project)
// compileOnly it
// }
// project.parent.subprojects.each { compile it }
}
jar {
archiveName = "${project.name}.jar"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}