[Java][RestTemplate] Gradle Build include non-compatible Spring Dependency with jakarta disabled (#21426)

* [Java][resttemplate] fix spring-web dependency for gradle without jakarta enabled

* fix samples
This commit is contained in:
Steven Blakowski 2025-06-19 10:11:37 +02:00 committed by GitHub
parent 8d8e3ddf16
commit cef971cf9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
83 changed files with 94 additions and 63 deletions

View File

@ -110,6 +110,27 @@ jobs:
path: | path: |
~/.m2 ~/.m2
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Build - name: Build with Maven
working-directory: ${{ matrix.sample }} working-directory: ${{ matrix.sample }}
run: mvn clean package --no-transfer-progress run: mvn clean package --no-transfer-progress
- name: Cache gradle dependencies
uses: actions/cache@v4
env:
cache-name: gradle-caches
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Cache gradle wrapper
uses: actions/cache@v4
env:
cache-name: gradle-wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Build with Gradle
working-directory: ${{ matrix.sample }}
if: ${{ hashFiles('./gradlew') != '' }}
run: ./gradlew build -x test

View File

@ -97,12 +97,12 @@ if(hasProperty('target') && target == 'android') {
} }
task sourcesJar(type: Jar, dependsOn: classes) { task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources' archiveClassifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc' archiveClassifier = 'javadoc'
from javadoc.destinationDir from javadoc.destinationDir
} }

View File

@ -98,7 +98,12 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5" {{#swagger1AnnotationLibrary}}
swagger_annotations_version = "1.6.6"
{{/swagger1AnnotationLibrary}}
{{#swagger2AnnotationLibrary}}
swagger_annotations_version = "2.2.15"
{{/swagger2AnnotationLibrary}}
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
{{#openApiNullable}} {{#openApiNullable}}
@ -122,7 +127,12 @@ ext {
} }
dependencies { dependencies {
{{#swagger1AnnotationLibrary}}
implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
{{/swagger1AnnotationLibrary}}
{{#swagger2AnnotationLibrary}}
implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
{{/swagger2AnnotationLibrary}}
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

View File

@ -106,11 +106,25 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
{{#swagger1AnnotationLibrary}}
swagger_annotations_version = "1.6.9"
{{/swagger1AnnotationLibrary}}
{{#swagger2AnnotationLibrary}}
swagger_annotations_version = "2.2.9"
{{/swagger2AnnotationLibrary}}
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
{{#useBeanValidation}}
bean_validation_version = "2.0.2"
{{/useBeanValidation}}
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8' {{#swagger1AnnotationLibrary}}
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
{{/swagger1AnnotationLibrary}}
{{#swagger2AnnotationLibrary}}
implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
{{/swagger2AnnotationLibrary}}
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
@ -134,6 +148,9 @@ dependencies {
implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.30' implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.30'
{{/dynamicOperations}} {{/dynamicOperations}}
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
{{/useBeanValidation}}
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4' testImplementation 'org.mockito:mockito-core:3.12.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'

View File

@ -121,14 +121,14 @@ ext {
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
{{/openApiNullable}} {{/openApiNullable}}
{{#useJakartaEe}} {{#useJakartaEe}}
spring_web_version = "6.1.5" spring_web_version = "6.2.8"
jakarta_annotation_version = "2.1.1" jakarta_annotation_version = "2.1.1"
beanvalidation_version = "3.0.2" bean_validation_version = "3.0.2"
{{/useJakartaEe}} {{/useJakartaEe}}
{{^useJakartaEe}} {{^useJakartaEe}}
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
{{/useJakartaEe}} {{/useJakartaEe}}
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
@ -163,8 +163,12 @@ dependencies {
{{/joda}} {{/joda}}
{{#withXml}} {{#withXml}}
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version" implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version"
implementation "io.github.threeten-jaxb:threeten-jaxb-core:1.2"
{{/withXml}} {{/withXml}}
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
{{/useBeanValidation}}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
} }

View File

@ -134,7 +134,7 @@ dependencies {
implementation "io.reactivex.rxjava2:rxjava:$rx_java_version" implementation "io.reactivex.rxjava2:rxjava:$rx_java_version"
{{/useRxJava2}} {{/useRxJava2}}
{{#useRxJava3}} {{#useRxJava3}}
implementation 'com.squareup.retrofit2:adapter-rxjava3:$$retrofit_version' implementation "com.squareup.retrofit2:adapter-rxjava3:$retrofit_version"
implementation "io.reactivex.rxjava3:rxjava:$rx_java_version" implementation "io.reactivex.rxjava3:rxjava:$rx_java_version"
{{/useRxJava3}} {{/useRxJava3}}
implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "io.swagger:swagger-annotations:$swagger_annotations_version"

View File

@ -97,12 +97,12 @@ if(hasProperty('target') && target == 'android') {
} }
task sourcesJar(type: Jar, dependsOn: classes) { task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources' archiveClassifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc' archiveClassifier = 'javadoc'
from javadoc.destinationDir from javadoc.destinationDir
} }

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

0
samples/client/echo_api/kotlin-jvm-okhttp/gradlew vendored Normal file → Executable file
View File

0
samples/client/echo_api/kotlin-jvm-spring-3-restclient/gradlew vendored Normal file → Executable file
View File

0
samples/client/echo_api/kotlin-jvm-spring-3-webclient/gradlew vendored Normal file → Executable file
View File

0
samples/client/echo_api/kotlin-model-prefix-type-mappings/gradlew vendored Normal file → Executable file
View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -108,7 +107,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

0
samples/client/others/java/jersey2-oneOf-Mixed/gradlew vendored Normal file → Executable file
View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -108,7 +107,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

0
samples/client/others/java/jersey2-oneOf-duplicates/gradlew vendored Normal file → Executable file
View File

View File

@ -103,10 +103,10 @@ if(hasProperty('target') && target == 'android') {
ext { ext {
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
bean_validation_version = "2.0.2"
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
@ -116,6 +116,7 @@ dependencies {
implementation 'org.openapitools:jackson-databind-nullable:0.2.6' implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0' implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4' testImplementation 'org.mockito:mockito-core:3.12.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'

0
samples/client/others/java/okhttp-gson-oneOf-array/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/others/java/okhttp-gson-oneOf/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/others/java/okhttp-gson-streaming/gradlew vendored Normal file → Executable file
View File

View File

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }
@ -118,6 +118,7 @@ dependencies {
implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
} }

View File

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

View File

0
samples/client/others/java/webclient-useAbstractionForFiles/gradlew vendored Normal file → Executable file
View File

0
samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/gradlew vendored Normal file → Executable file
View File

0
samples/client/others/kotlin-jvm-okhttp-parameter-tests/gradlew vendored Normal file → Executable file
View File

0
samples/client/others/kotlin-jvm-okhttp-path-comments/gradlew vendored Normal file → Executable file
View File

View File

@ -97,12 +97,12 @@ if(hasProperty('target') && target == 'android') {
} }
task sourcesJar(type: Jar, dependsOn: classes) { task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources' archiveClassifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc' archiveClassifier = 'javadoc'
from javadoc.destinationDir from javadoc.destinationDir
} }

0
samples/client/petstore/java/apache-httpclient/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/feign-hc5/gradlew vendored Normal file → Executable file
View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -109,7 +108,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

0
samples/client/petstore/java/jersey2-java8-localdatetime/gradlew vendored Normal file → Executable file
View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -109,7 +108,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

0
samples/client/petstore/java/jersey2-java8/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/jersey3-oneOf/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/jersey3/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/native-jakarta/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-3.1/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-awsv4signature/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-group-parameter/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-nullable-required/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-parcelableModel/gradlew vendored Normal file → Executable file
View File

View File

@ -102,11 +102,12 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.9"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8' implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-swagger1/gradlew vendored Normal file → Executable file
View File

View File

@ -102,11 +102,12 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "2.2.9"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8' implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson-swagger2/gradlew vendored Normal file → Executable file
View File

View File

@ -106,7 +106,6 @@ ext {
} }
dependencies { dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

0
samples/client/petstore/java/okhttp-gson/gradlew vendored Normal file → Executable file
View File

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.1.5" spring_web_version = "6.2.8"
jakarta_annotation_version = "2.1.1" jakarta_annotation_version = "2.1.1"
beanvalidation_version = "3.0.2" bean_validation_version = "3.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

View File

@ -101,9 +101,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

0
samples/client/petstore/java/resttemplate-swagger1/gradlew vendored Normal file → Executable file
View File

View File

@ -101,9 +101,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

0
samples/client/petstore/java/resttemplate-swagger2/gradlew vendored Normal file → Executable file
View File

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }
@ -118,6 +118,7 @@ dependencies {
implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version" implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version"
implementation "io.github.threeten-jaxb:threeten-jaxb-core:1.2"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"

View File

@ -100,9 +100,9 @@ ext {
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
spring_web_version = "6.2.8" spring_web_version = "5.3.33"
jakarta_annotation_version = "1.3.5" jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2" bean_validation_version = "2.0.2"
jodatime_version = "2.9.9" jodatime_version = "2.9.9"
junit_version = "5.10.2" junit_version = "5.10.2"
} }

View File

@ -110,7 +110,7 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:$retrofit_version" implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-scalars:$retrofit_version" implementation "com.squareup.retrofit2:converter-scalars:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation 'com.squareup.retrofit2:adapter-rxjava3:$$retrofit_version' implementation "com.squareup.retrofit2:adapter-rxjava3:$retrofit_version"
implementation "io.reactivex.rxjava3:rxjava:$rx_java_version" implementation "io.reactivex.rxjava3:rxjava:$rx_java_version"
implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"

0
samples/client/petstore/java/vertx-supportVertxFuture/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/webclient-nullable-arrays/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/webclient-swagger2/gradlew vendored Normal file → Executable file
View File

0
samples/client/petstore/java/webclient/gradlew vendored Normal file → Executable file
View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -108,7 +107,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -108,7 +107,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

View File

View File

@ -98,7 +98,7 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5" swagger_annotations_version = "1.6.6"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"

View File

View File

@ -98,7 +98,7 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5" swagger_annotations_version = "2.2.15"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -109,7 +109,7 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

View File

View File

@ -98,7 +98,6 @@ if(hasProperty('target') && target == 'android') {
} }
ext { ext {
swagger_annotations_version = "1.6.5"
jackson_version = "2.17.1" jackson_version = "2.17.1"
jackson_databind_version = "2.17.1" jackson_databind_version = "2.17.1"
jackson_databind_nullable_version = "0.2.6" jackson_databind_nullable_version = "0.2.6"
@ -111,7 +110,6 @@ ext {
} }
dependencies { dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"

0
samples/openapi3/client/petstore/java/jersey2-java8/gradlew vendored Normal file → Executable file
View File