@@ -2,71 +2,73 @@ val ktorVersion: String by project
2
2
val kotestVersion: String by project
3
3
4
4
plugins {
5
- kotlin(" jvm" ) version " 2.0.0"
6
- id(" org.jetbrains.kotlin.plugin.serialization" ) version " 2.0.0"
7
- id(" maven-publish" )
8
- id(" jacoco" )
5
+ kotlin(" jvm" ) version " 2.0.0"
6
+ id(" org.jetbrains.kotlin.plugin.serialization" ) version " 2.0.0"
7
+ id(" maven-publish" )
8
+ id(" jacoco" )
9
9
}
10
10
11
11
group = " schwarz.it"
12
12
version = " 1.0.0"
13
13
14
14
repositories {
15
- mavenCentral()
15
+ mavenCentral()
16
16
}
17
17
18
18
dependencies {
19
- implementation(kotlin(" reflect" ))
20
- implementation(" io.ktor:ktor-serialization-kotlinx-json:$ktorVersion " )
19
+ implementation(kotlin(" reflect" ))
20
+ implementation(" io.ktor:ktor-server-core:$ktorVersion " )
21
+ implementation(" io.ktor:ktor-serialization-kotlinx-json:$ktorVersion " )
21
22
22
- testImplementation(kotlin(" test" ))
23
- testImplementation(" io.kotest:kotest-runner-junit5:$kotestVersion " )
24
- testImplementation(" io.kotest:kotest-assertions-core:$kotestVersion " )
23
+ testImplementation(kotlin(" test" ))
24
+ testImplementation(" io.kotest:kotest-runner-junit5:$kotestVersion " )
25
+ testImplementation(" io.kotest:kotest-assertions-core:$kotestVersion " )
25
26
}
26
27
27
28
tasks.test {
28
- useJUnitPlatform()
29
+ useJUnitPlatform()
29
30
}
30
31
kotlin {
31
- jvmToolchain(21 )
32
+ jvmToolchain(21 )
32
33
}
33
34
34
35
publishing {
35
- publications {
36
- create<MavenPublication >(" mavenPublication" ) {
37
- from(components[" java" ])
38
- }
39
- }
40
- repositories {
41
- maven {
42
- name = " artifactory"
43
- credentials {
44
- username = project.findProperty(" artifactoryUsername" ) as String? ? : System .getenv(" ARTIFACTORY_USER" )
45
- password = project.findProperty(" artifactoryPassword" ) as String? ? : System .getenv(" ARTIFACTORY_PASSWORD" )
46
- }
47
- url = uri(" https://schwarzit.jfrog.io/artifactory/xx-sit-odj-psftp-maven-release-local/" )
48
- }
49
- }
36
+ publications {
37
+ create<MavenPublication >(" mavenPublication" ) {
38
+ from(components[" java" ])
39
+ }
40
+ }
41
+ repositories {
42
+ maven {
43
+ name = " artifactory"
44
+ credentials {
45
+ username = project.findProperty(" artifactoryUsername" ) as String? ? : System .getenv(" ARTIFACTORY_USER" )
46
+ password =
47
+ project.findProperty(" artifactoryPassword" ) as String? ? : System .getenv(" ARTIFACTORY_PASSWORD" )
48
+ }
49
+ url = uri(" https://schwarzit.jfrog.io/artifactory/xx-sit-odj-psftp-maven-release-local/" )
50
+ }
51
+ }
50
52
}
51
53
52
54
jacoco {
53
- reportsDirectory.set(layout.buildDirectory.dir(" reports/jacoco/" ))
55
+ reportsDirectory.set(layout.buildDirectory.dir(" reports/jacoco/" ))
54
56
}
55
57
56
58
with (tasks) {
57
- test {
58
- useJUnitPlatform()
59
- finalizedBy(jacocoTestReport)
60
- }
59
+ test {
60
+ useJUnitPlatform()
61
+ finalizedBy(jacocoTestReport)
62
+ }
61
63
62
- jacocoTestReport {
63
- dependsOn(test)
64
- reports {
65
- xml.required.set(true )
66
- csv.required.set(false )
67
- html.required.set(true )
68
- xml.outputLocation.set(layout.buildDirectory.file(" reports/jacoco/report.xml" ))
69
- html.outputLocation.set(layout.buildDirectory.dir(" reports/jacoco/html" ))
70
- }
71
- }
64
+ jacocoTestReport {
65
+ dependsOn(test)
66
+ reports {
67
+ xml.required.set(true )
68
+ csv.required.set(false )
69
+ html.required.set(true )
70
+ xml.outputLocation.set(layout.buildDirectory.file(" reports/jacoco/report.xml" ))
71
+ html.outputLocation.set(layout.buildDirectory.dir(" reports/jacoco/html" ))
72
+ }
73
+ }
72
74
}
0 commit comments