1
1
plugins {
2
2
`java- gradle- plugin`
3
- `maven- publish`
4
- kotlin(" jvm" ) version " 1.8.0-RC"
5
- id (" com.palantir.idea-test-fix" ) version " 0.1.0"
6
3
id(" com.gradle.plugin-publish" ) version " 0.14.0"
7
- id(" org.sonarqube" ) version " 3.5.0.2730"
8
- id(" com.github.ben-manes.versions" ) version " 0.44.0"
9
- id(" io.gitlab.arturbosch.detekt" ) version " 1.22.0"
4
+ id(" org.sonarqube" ) version " 3.1.1"
5
+ kotlin(" jvm" ) version " 1.4.31"
6
+ `maven- publish`
7
+ id(" com.github.ben-manes.versions" ) version " 0.38.0"
8
+ id(" io.gitlab.arturbosch.detekt" ) version " 1.16.0"
10
9
}
11
10
12
11
group = " org.springdoc"
@@ -46,19 +45,20 @@ publishing {
46
45
}
47
46
48
47
dependencies {
49
- implementation(" com.google.code.gson:gson:2.10" )
50
- implementation(" org.awaitility:awaitility-kotlin:4.2.0" )
48
+ implementation(kotlin(" reflect" ))
49
+ implementation(" com.google.code.gson:gson:2.8.6" )
50
+ implementation(" org.awaitility:awaitility-kotlin:4.0.3" )
51
51
implementation(" com.github.psxpaul:gradle-execfork-plugin:0.2.0" )
52
- implementation(" org.springframework.boot:spring-boot-gradle-plugin:2.7.6" )
53
- implementation(" jakarta.platform:jakarta.jakartaee-api:10.0.0" )
52
+ implementation(" org.springframework.boot:spring-boot-gradle-plugin:2.5.6" )
54
53
55
54
testImplementation(gradleTestKit())
56
- testImplementation(" org.junit.jupiter:junit-jupiter:5.9.1" )
57
- testImplementation(" com.beust:klaxon:5.6" )
58
- testImplementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.14.1" )
59
- testImplementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.1" )
55
+ testImplementation(platform(" org.junit:junit-bom:5.7.1" ))
56
+ testImplementation(" org.junit.jupiter:junit-jupiter" )
57
+ testImplementation(" com.beust:klaxon:5.5" )
58
+ testImplementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.13.2" )
59
+ testImplementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.2" )
60
60
61
- detektPlugins(" io.gitlab.arturbosch.detekt:detekt-formatting:1.22 .0" )
61
+ detektPlugins(" io.gitlab.arturbosch.detekt:detekt-formatting:1.16 .0" )
62
62
}
63
63
64
64
gradlePlugin {
@@ -78,16 +78,23 @@ pluginBundle {
78
78
tags = listOf (" springdoc" , " openapi" , " swagger" )
79
79
}
80
80
81
+ val jvmVersion: JavaLanguageVersion = JavaLanguageVersion .of(8 )
82
+
83
+ tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
84
+ kotlinOptions {
85
+ jvmTarget = " 1.${jvmVersion.toString()} "
86
+ }
87
+ }
81
88
82
- tasks{
83
- val java: String by project
84
- withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > ().configureEach { kotlinOptions { jvmTarget = java } }
85
- withType< io.gitlab.arturbosch.detekt.Detekt > { jvmTarget = java }
86
- withType<Test >().configureEach { useJUnitPlatform() }
87
- // withType<Jar> { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
89
+ tasks.withType<Test >().configureEach {
90
+ useJUnitPlatform()
91
+ maxParallelForks = (Runtime .getRuntime().availableProcessors() / 2 ).takeIf { it > 0 } ? : 1
88
92
}
89
93
90
94
detekt {
91
95
config = files(" config/detekt/detekt.yml" )
92
96
parallel = true
93
97
}
98
+ tasks.withType< io.gitlab.arturbosch.detekt.Detekt > ().configureEach {
99
+ jvmTarget = " 1.${jvmVersion.toString()} "
100
+ }
0 commit comments