Skip to content

Commit

Permalink
Conditionnally add mavenLocal when releaser script is applied (reacto…
Browse files Browse the repository at this point in the history
…r#1960)

This is only activated when passing a non-false -PreleaserDryRun to
Gradle.
  • Loading branch information
simonbasle authored Nov 20, 2019
1 parent 06977a6 commit 356ec82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gradle/releaser.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/


if (rootProject.hasProperty("releaserDryRun") && rootProject.findProperty("releaserDryRun") != "false") {
println "Adding MavenLocal() for benefit of releaser dry run"
rootProject.repositories {
mavenLocal()
}
}

/**
* return a specific property value, assuming all the provided projects have it with the
* same value, or throw if multiple values are found
Expand Down

0 comments on commit 356ec82

Please sign in to comment.