Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit cf3056f

Browse files
authored
Conditionnally add mavenLocal when releaser script is applied (#117)
This is only activated when passing a non-false -PreleaserDryRun to Gradle.
1 parent 6483214 commit cf3056f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gradle/releaser.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
if (rootProject.hasProperty("releaserDryRun") && rootProject.findProperty("releaserDryRun") != "false") {
18+
println "Adding MavenLocal() for benefit of releaser dry run"
19+
rootProject.repositories {
20+
mavenLocal()
21+
}
22+
}
23+
1624
/**
1725
* return a specific property value, assuming all the provided projects have it with the
1826
* same value, or throw if multiple values are found

0 commit comments

Comments
 (0)