-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (61 loc) · 2.22 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
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.6.20'
id "com.github.ben-manes.versions" version "0.42.0"
}
// This is for ./gradlew run
application {
mainClassName = "ContentServer"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'com.github.pambrose.readingbat'
version '1.0-SNAPSHOT'
repositories {
maven { url = 'https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers' }
google()
mavenCentral()
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "com.github.readingbat.readingbat-core:readingbat-core:$readingbat_version"
runtimeOnly "org.jetbrains.kotlin:kotlin-scripting-jsr223:$kotlin_version"
implementation "com.github.pambrose.common-utils:core-utils:$utils_version"
implementation "io.github.microutils:kotlin-logging:$logging_version"
implementation "ch.qos.logback:logback-classic:$logback_version"
testImplementation "com.github.readingbat.readingbat-core:readingbat-kotest:$readingbat_version"
testImplementation "io.ktor:ktor-server-tests:$ktor_version"
testImplementation "io.ktor:ktor-server-test-host:$ktor_version"
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
testImplementation "io.kotest:kotest-property:$kotest_version"
testImplementation "io.kotest:kotest-assertions-core:$kotest_version"
testImplementation "io.kotest:kotest-assertions-ktor:$kotest_ktor_version"
testImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
}
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src']
test.kotlin.srcDirs = test.java.srcDirs = ['test']
main.resources.srcDirs = ['resources']
test.resources.srcDirs = ['testresources']
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
showStandardStreams = true
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}