[java] Update Gradle to 7.2 (#10538)

* update gradle to 7.2

* update samples

* use gradle-7.2-bin.zip instead
This commit is contained in:
William Cheng
2021-10-08 10:48:27 +08:00
committed by GitHub
parent 8d7be74b79
commit 6c5f6d2400
125 changed files with 4788 additions and 3349 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: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,18 @@ 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-apache-httpclient'
publishing {
publications {
maven(MavenPublication) {
artifactId = 'petstore-apache-httpclient'
from components.java
}
}
}