-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
55 lines (42 loc) · 1.21 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
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
}
}
apply plugin: 'kotlin'
apply plugin: "com.github.johnrengelman.shadow"
group 'io.gitplag'
version '0.1'
def mainClassName = 'io.gitplag.mossapi.MainKt'
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.sparkjava:spark-core:2.9.1'
implementation 'org.jsoup:jsoup:1.11.3'
implementation 'com.beust:klaxon:5.0.9'
implementation 'org.slf4j:slf4j-api:1.7.28'
implementation 'org.slf4j:slf4j-simple:1.7.28'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
}
jar {
manifest {
attributes "Main-Class": mainClassName
}
}
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
test {
useJUnitPlatform()
}