Skip to content

Commit

Permalink
removed upload to local maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriel committed Oct 24, 2016
1 parent 1534f2a commit 3d3f797
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,59 +112,59 @@ afterEvaluate { project ->
//archives androidJavadocsJar
}

/**
* Upload to local maven repository
* if it is needed, please add following properties:
* - LOCAL_MVN_REPO: local repo url
* - maven_user: local repo user name
* - maven_password: local repo password
*/
task uploadExternal(type: Upload) {
def localRepo = properties.get("LOCAL_MVN_REPO")
def localRepoUser = properties.get("maven_user")
def localRepoPwd = properties.get("maven_password")

if (null != localRepo) {
uploadDescriptor = true
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = rootProject.mavenVersionName
// Add other pom properties here if you want (developer details / licenses)
repository(url: localRepo) {
authentication(userName: localRepoUser, password: localRepoPwd)
}

pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
}
// /**
// * Upload to local maven repository
// * if it is needed, please add following properties:
// * - LOCAL_MVN_REPO: local repo url
// * - maven_user: local repo user name
// * - maven_password: local repo password
// */
// task uploadExternal(type: Upload) {
// def localRepo = properties.get("LOCAL_MVN_REPO")
// def localRepoUser = properties.get("maven_user")
// def localRepoPwd = properties.get("maven_password")
//
// if (null != localRepo) {
// uploadDescriptor = true
// repositories.mavenDeployer {
// beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
//
// pom.groupId = GROUP
// pom.artifactId = POM_ARTIFACT_ID
// pom.version = rootProject.mavenVersionName
// // Add other pom properties here if you want (developer details / licenses)
// repository(url: localRepo) {
// authentication(userName: localRepoUser, password: localRepoPwd)
// }
//
// pom.project {
// name POM_NAME
// packaging POM_PACKAGING
// description POM_DESCRIPTION
// url POM_URL
//
// scm {
// url POM_SCM_URL
// connection POM_SCM_CONNECTION
// developerConnection POM_SCM_DEV_CONNECTION
// }
//
// licenses {
// license {
// name POM_LICENCE_NAME
// url POM_LICENCE_URL
// distribution POM_LICENCE_DIST
// }
// }
//
// developers {
// developer {
// id POM_DEVELOPER_ID
// name POM_DEVELOPER_NAME
// }
// }
// }
// }
// }
// }
}

0 comments on commit 3d3f797

Please sign in to comment.