From 348e85b51b3972f00809a5c5f797bd700d6c12ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B8=86?= <446962864@qq.com> Date: Fri, 30 Jul 2021 09:05:25 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20gradle/p?= =?UTF-8?q?ublish-mavencentral.gradle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle/publish-mavencentral.gradle | 94 ------------------------------ 1 file changed, 94 deletions(-) delete mode 100644 gradle/publish-mavencentral.gradle diff --git a/gradle/publish-mavencentral.gradle b/gradle/publish-mavencentral.gradle deleted file mode 100644 index aff480a..0000000 --- a/gradle/publish-mavencentral.gradle +++ /dev/null @@ -1,94 +0,0 @@ -apply plugin: 'maven' -apply plugin: 'maven-publish' -apply plugin: 'signing' - -// Because the components are created only during the afterEvaluate phase, you must -// configure your publications using the afterEvaluate() lifecycle method. -afterEvaluate { - publishing { - publications { - // Creates a Maven publication called "release". - release(MavenPublication) { - // Applies the component for the release build variant. - from components.release - - // You can then customize attributes of the publication as shown below. - groupId = libraryGroupId - artifactId = libraryArtifactId - version = libraryVersion - } - // Creates a Maven publication called “debug”. - debug(MavenPublication) { - // Applies the component for the debug build variant. - from components.debug - - groupId = libraryGroupId - artifactId = libraryArtifactId - version = libraryVersion - } - } - } - - uploadArchives { - repositories { - mavenDeployer { - beforeDeployment { deployment -> signing.signPom(deployment) } - - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: ossrhUsername, password: ossrhPassword) - } - - snapshotRepository(url: "https:/oss.sonatype.org/content/repositories/snapshots/") { - authentication(userName: ossrhUsername, password: ossrhPassword) - } - - pom.project { - name 'LazyDatePicker' - packaging 'aar' - // optionally artifactId can be defined here - description 'This is an Android project to offer an alternative to the native Android Date Picker.' - url 'https://github.com/lopspower/LazyDatePicker' - - groupId = libraryGroupId - artifactId = libraryArtifactId - version = libraryVersion - - scm { - connection 'scm:git:https://github.com/lopspower/LazyDatePicker' - developerConnection 'scm:git:https://github.com/lopspower/LazyDatePicker' - url 'https://github.com/lopspower/LazyDatePicker' - } - - licenses { - license { - name 'The Apache License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - - developers { - developer { - id 'mikhael.lopez' - name 'Mikhael LOPEZ' - email 'lopez.mikhael@gmail.com' - } - } - } - } - } - } - - task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.sourceFiles - } - - signing { - required { gradle.taskGraph.hasTask("uploadArchives") } - sign configurations.archives - } - - artifacts { - archives androidSourcesJar - } -} \ No newline at end of file -- Gitee