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 = '1.0.0'
buildscript {
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.+'
@@ -16,7 +15,7 @@ buildscript {
}
repositories {
jcenter()
mavenCentral()
}
@@ -77,14 +76,17 @@ if(hasProperty('target') && target == 'android') {
} else {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
install {
repositories.mavenInstaller {
pom.artifactId = 'petstore-google-api-client'
publishing {
publications {
maven(MavenPublication) {
artifactId = 'petstore-google-api-client'
from components.java
}
}
}

0
samples/client/petstore/java/google-api-client/gradlew vendored Normal file → Executable file
View File