-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
86 lines (78 loc) · 2.65 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
id("io.gitlab.arturbosch.detekt")
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply {
plugin("jacoco")
plugin("kotlin")
plugin("io.gitlab.arturbosch.detekt")
plugin("org.jetbrains.dokka")
}
sourceSets {
main {
resources {
srcDir("src/main/kotlin")
exclude("**/*.kt")
}
}
test {
resources {
srcDir("src/test/kotlin")
exclude("**/*.kt")
}
}
}
dependencies {
val junitVersion: String by project
val kotlinVersion: String by project
val kotlinxHtmlVersion: String by project
val logbackVersion: String by project
val servlet31Version: String by project
val wicketVersion: String by project
/*
* Kotlin
*/
implementation(kotlin("stdlib-jdk8"))
/*
* Wicket
*/
implementation(group = "org.apache.wicket", name = "wicket-core", version = wicketVersion)
implementation(group = "org.apache.wicket", name = "wicket-extensions", version = wicketVersion)
implementation(group = "javax.servlet", name = "javax.servlet-api", version = servlet31Version)
implementation(group = "org.wicketstuff", name = "wicketstuff-minis", version = wicketVersion)
/*
* Kotlin HTML DSL
*/
implementation(group = "org.jetbrains.kotlinx", name = "kotlinx-html-jvm", version = kotlinxHtmlVersion) {
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8")
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-common")
}
/*
* Testing
*/
testImplementation(group = "org.jetbrains.kotlin", name = "kotlin-test-common", version = kotlinVersion)
testImplementation(group = "org.jetbrains.kotlin", name = "kotlin-test-junit5", version = kotlinVersion)
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-params", version = junitVersion)
testRuntimeOnly(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = junitVersion)
testRuntimeOnly(group = "ch.qos.logback", name = "logback-classic", version = logbackVersion)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}