diff --git a/gradle/publish-mavencentral.gradle b/gradle/publish-mavencentral.gradle deleted file mode 100644 index aff480a13271e107da04add7c2de93a9a97d8fd0..0000000000000000000000000000000000000000 --- 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