Skip to content

Commit

Permalink
Simplify creation of internal releases (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed Aug 9, 2022
1 parent e61da3b commit e111772
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,21 @@ publishing {
url = "${rootProject.buildDir}/localMaven"
}
}

/**
* Want to push to an internal repository for testing?
* Set the following properties in ~/.gradle/gradle.properties.
*
* internalUrl=YOUR_INTERNAL_URL
* internalUsername=YOUR_USERNAME
* internalPassword=YOUR_PASSWORD
*/
def internalUrl = providers.gradleProperty("internalUrl")
if (internalUrl.isPresent()) {
maven {
name = "internal"
url = uri(internalUrl)
credentials(PasswordCredentials)
}
}
}

0 comments on commit e111772

Please sign in to comment.