Skip to content

Commit

Permalink
升级gradle版本
Browse files Browse the repository at this point in the history
  • Loading branch information
simplepeng committed Sep 22, 2021
1 parent ba5ed7a commit e5de0b8
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11
16 changes: 12 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
applicationId "example.simple.spiderman"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -34,6 +37,11 @@ android {
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
Expand Down
15 changes: 7 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.android.tools.build:gradle:7.0.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -20,6 +18,7 @@ allprojects {
repositories {
google()
// jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Expand All @@ -29,12 +28,12 @@ task clean(type: Delete) {
}

ext {
sm_version = "1.1.7"
sm_no_op_version = "1.1.5"
sm_version = "1.1.9"
sm_no_op_version = "1.1.9"

compileSdkVersion = 28
compileSdkVersion = 30
minSdkVersion = 14
targetSdkVersion = 28
targetSdkVersion = 30

appcompat = "28.0.0"
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Apr 20 16:41:52 CST 2018
#Tue Dec 03 11:10:12 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
25 changes: 21 additions & 4 deletions spiderman-callback/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
resourcePrefix "simple"

compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion 27
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
25 changes: 21 additions & 4 deletions spiderman-libs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
resourcePrefix "simple"

compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion 27
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
26 changes: 21 additions & 5 deletions spiderman-no-op/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
resourcePrefix "simple"

compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion 27

minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
25 changes: 21 additions & 4 deletions spiderman/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
resourcePrefix "simple"

compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion 27
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down

0 comments on commit e5de0b8

Please sign in to comment.