123456789101112131415161718192021222324252627282930313233343536373839 |
- apply plugin: 'maven-publish'
- publishing {
- publications {
- maven(MavenPublication) {
- groupId = MAVEN_GROUNP_ID
- artifactId = 'wheel'
- version = '1.0.0'
- }
- }
- repositories {
- maven {
- name = 'nexus'
- allowInsecureProtocol true
- url MAVEN_PUBLIC_URL
- credentials {
- username = MAVEN_USERNAME
- password = MAVEN_PASSWORD
- }
- def releasesRepoUrl = MAVEN_PUBLIC_URL
- def snapshotRepoUrl = MAVEN_SNAPSHOTS_URL
- url = version.endsWith('SNAPSHOT') ? snapshotRepoUrl : releasesRepoUrl
- }
- }
- }
- //uploadArchives {
- // repositories {
- // mavenDeployer{
- // repository(url:MAVEN_PUBLIC_URL){
- // authentication(userName: MAVEN_USERNAME, password: MAVEN_PASSWORD)
- // }
- // pom.groupId = MAVEN_GROUNP_ID
- // pom.artifactId = 'wheel'
- // pom.version = '1.0.0'
- // pom.packaging = 'aar'
- // }
- // }
- //}
|