Fix library generation compatibility with Gradle 7.2 (#10716)

* Make Java libraries compatible with Gradle 7

* Make kotlin-spring compatible with Gradle 7

* Update samples to comply to Gradle 7.2

* Generate samples
This commit is contained in:
Martin Visser
2021-10-29 06:36:12 +02:00
committed by GitHub
parent a33a0fd5c7
commit 59d5851797
76 changed files with 1096 additions and 815 deletions

View File

@@ -6,8 +6,7 @@ version = 'v1'
buildscript {
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
@@ -16,8 +15,7 @@ buildscript {
}
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
mavenCentral()
}
if(hasProperty('target') && target == 'android') {
@@ -78,14 +76,17 @@ if(hasProperty('target') && target == 'android') {
} else {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
pom.artifactId = 'petstore-webclient-nullable-arrays'
publishing {
publications {
maven(MavenPublication) {
artifactId = 'petstore-webclient-nullable-arrays'
from components.java
}
}
}

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