-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (66 loc) · 1.85 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
74
75
76
77
78
79
80
81
82
83
/*
* © Copyright - Lars Artmann aka. LartyHD 2019.
*/
buildscript {
ext {
kotlinVersion = '1.3.21'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
group = "de.astride"
version = "1.0-SNAPSHOT"
libsDirName = "libraries"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
jcenter()
google()
maven { url = ("https://repo.velocitypowered.com/snapshots/") }
}
configurations {
// configuration that holds jars to include in the jar
compile.extendsFrom jarLibs
}
dependencies {
compileOnly(fileTree(libsDirName))
compileOnly "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly "org.jetbrains.kotlin:kotlin-reflect"
compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.1"
testCompileOnly "org.jetbrains.kotlin:kotlin-test"
testCompileOnly "org.jetbrains.kotlin:kotlin-test-junit5"
testCompileOnly "org.mockito:mockito-all:2.0.2-beta"
testCompileOnly "org.junit.jupiter:junit-jupiter-api:5.3.1"
}
jar {
from {
configurations.jarLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}
wrapper {
gradleVersion = '5.2'
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
suppressWarnings = true
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
suppressWarnings = true
}
}
}