-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathbuild.gradle.kts
81 lines (64 loc) · 1.69 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
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
plugins {
kotlin("jvm") version "1.9.23"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
repositories {
mavenCentral()
}
dependencies {
implementation("javax.servlet:javax.servlet-api:4.0.1")
testImplementation("org.mockito:mockito-core:5.+")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}
kotlin {
jvmToolchain(17)
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showStandardStreams = true
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
events(STARTED, PASSED, SKIPPED, FAILED)
}
}
//application {
// mainClass.set("WebAppKt")
//}
//tasks.replace("assemble").dependsOn("installDist")
//tasks.create("stage").dependsOn("installDist")
/*
buildscript {
ext.kotlin_version = '1.3.20'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:5.0.0"
}
}
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.2.61"
}
apply plugin: 'com.github.johnrengelman.shadow'
tasks.build.dependsOn tasks.shadowJar
shadowJar {
mergeServiceFiles()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib"
compile "javax.servlet:javax.servlet-api:3.1.0"
testCompile 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:5.+'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
repositories {
mavenCentral()
}
*/