-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
78 lines (67 loc) · 1.87 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
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'idea'
group = 'se.zensum'
version = '1.0-SNAPSHOT'
description = 'Ktor feature for health and readiness checks in the Kubernetes style'
defaultTasks 'build'
buildscript {
ext.kotlin_version = '1.6.20'
ext.jvm_version = '1.8'
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation group: 'io.ktor', name: 'ktor-server-core', version: '2.0.0'
}
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
}
compileKotlin {
sourceCompatibility = jvm_version
kotlinOptions {
jvmTarget = jvm_version
}
}
compileJava {
sourceCompatibility = jvm_version
targetCompatibility = jvm_version
options.incremental = true
options.encoding = 'UTF-8'
}
// Important: All classes containing test cases must match the
// the regex pattern "^.*Tests?$" to be picked up by the junit-gradle plugin.
sourceSets {
main.resources.srcDirs += 'src/main/resources'
main.kotlin.srcDirs += 'src/main/kotlin'
test.kotlin.srcDirs += 'src/test/kotlin'
main.java.srcDirs += 'src/main/java'
test.java.srcDirs += 'src/test/java'
}
wrapper {
description = 'Generates gradlew[.bat] scripts for faster execution'
gradleVersion = '7.4.2'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
}
}