-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (46 loc) · 1.17 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
50
51
52
53
54
55
56
57
58
59
60
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.3.21"
idea
}
group = "codes.rik"
version = "0.1"
repositories {
mavenCentral()
jcenter()
}
dependencies {
val spekVersion = "2.0.1"
//
// Code
//
// Kotlin
implementation(kotlin("stdlib-jdk8"))
// 3P
implementation("com.google.guava", "guava", "27.0.1-jre")
implementation("org.atteo", "evo-inflector", "1.0.1")
//
// Test
//
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.1.1")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.1.1")
// Kotlin
testRuntimeOnly(kotlin("reflect"))
// Spek
testImplementation("org.spekframework.spek2", "spek-dsl-jvm", spekVersion)
testRuntimeOnly("org.spekframework.spek2", "spek-runner-junit5", spekVersion)
// Hamkrest
testImplementation("com.natpryce", "hamkrest", "1.7.0.0")
}
tasks.withType<Test> {
useJUnitPlatform {
includeEngines("spek2")
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}