Skip to content

Commit e96c72f

Browse files
committed
configuration to filter existing dirs
1 parent bd2531b commit e96c72f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ plugins {
1919
}
2020

2121
deploy {
22-
dirs = subprojects.collect { e -> e.layout.buildDirectory.dir("repo").get().getAsFile() }
22+
dirs = subprojects.stream()
23+
.map(e -> e.layout.buildDirectory.dir("repo").get().getAsFile())
24+
.filter(e -> e.exists())
25+
.toList()
2326
username = System.getenv("MAVENCENTRAL_USERNAME")
2427
password = System.getenv("MAVENCENTRAL_PASSWORD")
2528
publishingType = io.github.danielliu1123.deployer.PublishingType.AUTOMATIC

0 commit comments

Comments
 (0)