Test build.gradle for java native petstore samples, sync pom.xml & build.gradle (#19951)

* test build.gradle for java native petstore samples

* trigger build

* sync pom.xml and build.gradle (java native)
This commit is contained in:
William Cheng 2024-10-23 16:38:30 +08:00 committed by GitHub
parent 21093b78c6
commit 511316a966
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 18 additions and 1 deletions

View File

@ -29,6 +29,8 @@ jobs:
- samples/client/petstore/java/okhttp-gson
- samples/client/petstore/java/okhttp-gson-group-parameter
- samples/client/petstore/java/webclient-swagger2
- samples/client/petstore/java/native
- samples/client/petstore/java/native-jakarta
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4

View File

@ -73,7 +73,14 @@ ext {
swagger_annotations_version = "2.2.9"
{{/swagger2AnnotationLibrary}}
jackson_version = "2.17.1"
{{#useJakartaEe}}
jakarta_annotation_version = "2.1.1"
beanvalidation_version = "3.0.2"
{{/useJakartaEe}}
{{^useJakartaEe}}
jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2"
{{/useJakartaEe}}
junit_version = "5.10.2"
{{#hasFormParamsInSpec}}
httpmime_version = "4.5.13"
@ -94,6 +101,9 @@ dependencies {
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "org.openapitools:jackson-databind-nullable:0.2.1"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
{{#useBeanValidation}}
implementation "jakarta.validation:jakarta.validation-api:$beanvalidation_version"
{{/useBeanValidation}}
{{#hasFormParamsInSpec}}
implementation "org.apache.httpcomponents:httpmime:$httpmime_version"
{{/hasFormParamsInSpec}}

View File

@ -68,6 +68,7 @@ artifacts {
ext {
jackson_version = "2.17.1"
jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2"
junit_version = "5.10.2"
httpmime_version = "4.5.13"
}

View File

@ -68,6 +68,7 @@ artifacts {
ext {
jackson_version = "2.17.1"
jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2"
junit_version = "5.10.2"
httpmime_version = "4.5.13"
}

View File

@ -67,7 +67,8 @@ artifacts {
ext {
jackson_version = "2.17.1"
jakarta_annotation_version = "1.3.5"
jakarta_annotation_version = "2.1.1"
beanvalidation_version = "3.0.2"
junit_version = "5.10.2"
httpmime_version = "4.5.13"
}

View File

@ -21,3 +21,4 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

View File

@ -68,6 +68,7 @@ artifacts {
ext {
jackson_version = "2.17.1"
jakarta_annotation_version = "1.3.5"
beanvalidation_version = "2.0.2"
junit_version = "5.10.2"
httpmime_version = "4.5.13"
}