Skip to content

Commit 3d6e9d5

Browse files
authored
better format in build.gradle (kotlin) (#22439)
1 parent b9d4b56 commit 3d6e9d5

File tree

50 files changed

+110
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+110
-50
lines changed

modules/openapi-generator/src/main/resources/kotlin-client/build.gradle.mustache

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,29 @@ idea {
103103
}
104104
{{/idea}}
105105
{{#explicitApi}}
106+
106107
kotlin {
107108
explicitApi()
108109
}
109110
{{/explicitApi}}
110111
{{#jvm-spring-webclient}}{{#useSpringBoot3}}
112+
111113
kotlin {
112114
jvmToolchain {
113115
languageVersion.set(JavaLanguageVersion.of(17))
114116
}
115117
}
116118
{{/useSpringBoot3}}{{/jvm-spring-webclient}}
117119
{{#jvm-spring-restclient}}
120+
118121
kotlin {
119122
jvmToolchain {
120123
languageVersion.set(JavaLanguageVersion.of(17))
121124
}
122125
}
123126
{{/jvm-spring-restclient}}
124127
{{#kotlinx-datetime}}
128+
125129
kotlin {
126130
sourceSets {
127131
all {
@@ -132,6 +136,7 @@ kotlin {
132136
}
133137
}
134138
{{/kotlinx-datetime}}
139+
135140
dependencies {
136141
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
137142
{{^doNotUseRxAndCoroutines}}
@@ -235,7 +240,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
235240
{{/kotlinx_serialization}}
236241
237242
java {
238-
withSourcesJar()
243+
withSourcesJar()
239244
}
240245
241246
publishing {

samples/client/echo_api/kotlin-jvm-okhttp/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test {
5252
useJUnitPlatform()
5353
}
5454

55+
5556
dependencies {
5657
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5758
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -62,7 +63,7 @@ dependencies {
6263
}
6364

6465
java {
65-
withSourcesJar()
66+
withSourcesJar()
6667
}
6768

6869
publishing {

samples/client/echo_api/kotlin-jvm-spring-3-restclient/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ test {
5353
useJUnitPlatform()
5454
}
5555

56+
5657
kotlin {
5758
jvmToolchain {
5859
languageVersion.set(JavaLanguageVersion.of(17))
5960
}
6061
}
62+
6163
dependencies {
6264
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6365
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -68,7 +70,7 @@ dependencies {
6870
}
6971

7072
java {
71-
withSourcesJar()
73+
withSourcesJar()
7274
}
7375

7476
publishing {

samples/client/echo_api/kotlin-jvm-spring-3-webclient/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ test {
5353
useJUnitPlatform()
5454
}
5555

56+
5657
kotlin {
5758
jvmToolchain {
5859
languageVersion.set(JavaLanguageVersion.of(17))
5960
}
6061
}
6162

63+
6264
dependencies {
6365
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6466
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -70,7 +72,7 @@ dependencies {
7072
}
7173

7274
java {
73-
withSourcesJar()
75+
withSourcesJar()
7476
}
7577

7678
publishing {

samples/client/echo_api/kotlin-model-prefix-type-mappings/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ test {
5353
useJUnitPlatform()
5454
}
5555

56+
5657
dependencies {
5758
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5859
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2"
@@ -65,7 +66,7 @@ dependencies {
6566
}
6667

6768
java {
68-
withSourcesJar()
69+
withSourcesJar()
6970
}
7071

7172
publishing {

samples/client/others/kotlin-integer-enum/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test {
5252
useJUnitPlatform()
5353
}
5454

55+
5556
dependencies {
5657
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5758
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -62,7 +63,7 @@ dependencies {
6263
}
6364

6465
java {
65-
withSourcesJar()
66+
withSourcesJar()
6667
}
6768

6869
publishing {

samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test {
5252
useJUnitPlatform()
5353
}
5454

55+
5556
dependencies {
5657
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5758
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -62,7 +63,7 @@ dependencies {
6263
}
6364

6465
java {
65-
withSourcesJar()
66+
withSourcesJar()
6667
}
6768

6869
publishing {

samples/client/others/kotlin-jvm-okhttp-parameter-tests/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test {
5252
useJUnitPlatform()
5353
}
5454

55+
5556
dependencies {
5657
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5758
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -62,7 +63,7 @@ dependencies {
6263
}
6364

6465
java {
65-
withSourcesJar()
66+
withSourcesJar()
6667
}
6768

6869
publishing {

samples/client/others/kotlin-jvm-okhttp-path-comments/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test {
5252
useJUnitPlatform()
5353
}
5454

55+
5556
dependencies {
5657
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5758
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
@@ -62,7 +63,7 @@ dependencies {
6263
}
6364

6465
java {
65-
withSourcesJar()
66+
withSourcesJar()
6667
}
6768

6869
publishing {

samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ test {
5555
useJUnitPlatform()
5656
}
5757

58+
5859
dependencies {
5960
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6061
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0"
@@ -72,7 +73,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
7273
}
7374

7475
java {
75-
withSourcesJar()
76+
withSourcesJar()
7677
}
7778

7879
publishing {

0 commit comments

Comments
 (0)