Skip to content

Commit

Permalink
refactor publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cosyman committed Dec 23, 2015
1 parent e00d821 commit 38752cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ project(':device-api') {
apply from: "$rootProject.projectDir/gradle/upload.gradle"
}

if (rootProject.hasProperty('mvnPassword')) {
apply from: "$rootProject.projectDir/gradle/publishMaven.gradlee"
if (rootProject.hasProperty('inexusPassword')) {
apply from: "$rootProject.projectDir/gradle/publishInternalNexus.gradle"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ publishing {
repositories {
maven {
credentials {
username mvnUser
password mvnPassword
username inexusUser
password inexusPassword
}

if (project.version.endsWith('-SNAPSHOT')) {
url mvnSnapshotRepo
url inexusSnapshotRepo
} else {
url mvnReleaseRepo
url inexusReleaseRepo
}
}
}
Expand Down

0 comments on commit 38752cc

Please sign in to comment.