From becc63a8755291dc92fb600d7ebe17217f049589 Mon Sep 17 00:00:00 2001 From: Yongce Tu Date: Sat, 2 Oct 2021 23:52:30 +0800 Subject: [PATCH] Update the lib version --- android_project_common.gradle | 2 +- build.gradle | 4 +-- maven-upload.gradle | 61 ----------------------------------- 3 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 maven-upload.gradle diff --git a/android_project_common.gradle b/android_project_common.gradle index 5ded0df..8cf6674 100644 --- a/android_project_common.gradle +++ b/android_project_common.gradle @@ -98,7 +98,7 @@ ext { 'rxandroid' : "2.1.1", // ycdev - 'androidLib' : "1.8.5", + 'androidLib' : "2.0.0", // others 'zxing' : '3.4.0', diff --git a/build.gradle b/build.gradle index c3302b1..58a3230 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { } plugins { - id("com.diffplug.spotless") version "5.11.0" + id("com.diffplug.spotless") version "5.16.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" id("org.jetbrains.dokka") version "1.5.30" } @@ -34,8 +34,6 @@ ext { publishEnabled = true mavenMeta = [ - 'name': 'AndroidLib', - 'description': 'Android libraries', 'projectUrl': 'https://github.com/yongce/AndroidLib', 'projectScmConnection': 'https://github.com/yongce/AndroidLib.git', 'projectScmDevConnection': 'ssh://git@github.com/yongce/AndroidLib.git', diff --git a/maven-upload.gradle b/maven-upload.gradle deleted file mode 100644 index c13912a..0000000 --- a/maven-upload.gradle +++ /dev/null @@ -1,61 +0,0 @@ -apply plugin: 'maven-publish' - -afterEvaluate { - publishing { - publications { - // Creates a Maven publication called "release". - release(MavenPublication) { - if (project.plugins.findPlugin("com.android.library")) { - from components.release - } else { - from components.java - } - - groupId = mavenMeta.groupId - artifactId = project.archivesBaseName - version = mavenMeta.version - - pom { - name = project.moduleName - description = project.moduleDesc - url = mavenMeta.projectUrl - - scm { - url = mavenMeta.projectUrl - connection = mavenMeta.projectScmConnection - developerConnection = mavenMeta.projectScmDevConnection - } - - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - - developers { - developer { - id = mavenMeta.developerId - name = mavenMeta.developerName - email = mavenMeta.developerEmail - } - } - } - } - } - - repositories { - maven { - name = "mavencentral" - def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - - credentials { - username findProperty("ossrhUsername") - password findProperty("ossrhPassword") - } - } - } - } -}