From 0058f2ee8fe18fed7c80c3b8cfb092c5acad1dd8 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 23 Apr 2025 16:42:55 +0800 Subject: [PATCH] fix gradle.properties in java client --- .../Java/libraries/native/gradle.properties.mustache | 0 .../libraries/jvm-volley/gradle.properties.mustache | 8 ++++++++ samples/client/echo_api/java/native/gradle.properties | 6 ++++++ .../client/petstore/java/native-async/gradle.properties | 6 ++++++ .../client/petstore/java/native-jakarta/gradle.properties | 6 ++++++ samples/client/petstore/java/native/gradle.properties | 6 ++++++ .../gradle.properties | 5 +++++ .../kotlin-default-values-jvm-volley/gradle.properties | 5 +++++ .../client/petstore/kotlin-jvm-volley/gradle.properties | 5 +++++ 9 files changed, 47 insertions(+) delete mode 100644 modules/openapi-generator/src/main/resources/Java/libraries/native/gradle.properties.mustache diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/gradle.properties.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/gradle.properties.mustache deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-volley/gradle.properties.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-volley/gradle.properties.mustache index 5b018d630a7d..941d83cb7c55 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-volley/gradle.properties.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-volley/gradle.properties.mustache @@ -1,4 +1,12 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# android.useAndroidX=true {{#generateRoomModels}} android.enableJetifier=true {{/generateRoomModels}} +{{#gradleProperties}} +{{{.}}} +{{/gradleProperties}} diff --git a/samples/client/echo_api/java/native/gradle.properties b/samples/client/echo_api/java/native/gradle.properties index e69de29bb2d1..a3408578278a 100644 --- a/samples/client/echo_api/java/native/gradle.properties +++ b/samples/client/echo_api/java/native/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/samples/client/petstore/java/native-async/gradle.properties b/samples/client/petstore/java/native-async/gradle.properties index e69de29bb2d1..a3408578278a 100644 --- a/samples/client/petstore/java/native-async/gradle.properties +++ b/samples/client/petstore/java/native-async/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/samples/client/petstore/java/native-jakarta/gradle.properties b/samples/client/petstore/java/native-jakarta/gradle.properties index e69de29bb2d1..a3408578278a 100644 --- a/samples/client/petstore/java/native-jakarta/gradle.properties +++ b/samples/client/petstore/java/native-jakarta/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/samples/client/petstore/java/native/gradle.properties b/samples/client/petstore/java/native/gradle.properties index e69de29bb2d1..a3408578278a 100644 --- a/samples/client/petstore/java/native/gradle.properties +++ b/samples/client/petstore/java/native/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/samples/client/petstore/kotlin-array-simple-string-jvm-volley/gradle.properties b/samples/client/petstore/kotlin-array-simple-string-jvm-volley/gradle.properties index 5bac8ac50462..a9707aaf9931 100644 --- a/samples/client/petstore/kotlin-array-simple-string-jvm-volley/gradle.properties +++ b/samples/client/petstore/kotlin-array-simple-string-jvm-volley/gradle.properties @@ -1 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# android.useAndroidX=true diff --git a/samples/client/petstore/kotlin-default-values-jvm-volley/gradle.properties b/samples/client/petstore/kotlin-default-values-jvm-volley/gradle.properties index 646c51b977f3..3b3d9b0770bc 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-volley/gradle.properties +++ b/samples/client/petstore/kotlin-default-values-jvm-volley/gradle.properties @@ -1,2 +1,7 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# android.useAndroidX=true android.enableJetifier=true diff --git a/samples/client/petstore/kotlin-jvm-volley/gradle.properties b/samples/client/petstore/kotlin-jvm-volley/gradle.properties index 646c51b977f3..3b3d9b0770bc 100644 --- a/samples/client/petstore/kotlin-jvm-volley/gradle.properties +++ b/samples/client/petstore/kotlin-jvm-volley/gradle.properties @@ -1,2 +1,7 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# android.useAndroidX=true android.enableJetifier=true