-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
49 lines (38 loc) · 1.03 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.31"
java
application
}
group = "com.github.peter-evans"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val kotlinVersion = "1.3.+"
implementation(kotlin("stdlib-jdk8", kotlinVersion))
val junitVersion = "5.3.+"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation(kotlin("test-junit5", kotlinVersion))
val dropwizardVersion = "1.3.+"
implementation("io.dropwizard:dropwizard-core:$dropwizardVersion")
}
dependencyLocking {
lockAllConfigurations()
}
application {
mainClassName = "com.github.peterevans.exampleapi.ExampleApiApplication"
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
"test"(Test::class) {
useJUnitPlatform()
}
named<JavaExec>("run") {
args("server", "./config/local.yml")
}
}