diff --git a/build.gradle b/build.gradle index d38c87c..991b243 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' - classpath 'com.novoda:bintray-release:0.9' + classpath 'com.android.tools.build:gradle:7.1.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2d80b69..4bf2bb1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Mon Oct 14 16:13:31 CST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/library/build.gradle b/library/build.gradle index 04e7108..2f247ad 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -18,8 +18,6 @@ android { } } - packageBuildConfig = false - buildTypes { release { minifyEnabled false @@ -44,13 +42,18 @@ dependencies { androidTestImplementation 'junit:junit:4.12' } -apply plugin: 'com.novoda.bintray-release' +apply plugin: 'maven-publish' + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + groupId = 'me.weishu' + artifactId = 'free_reflection' + version = '3.1.0' -publish { - userOrg = 'twsxtd' - groupId = 'me.weishu' - artifactId = 'free_reflection' - publishVersion = '3.1.0' - desc = 'Use Relection above Android P without any restriction' - website = 'https://github.com/tiann/FreeRelfection' + from components.release + } + } + } }