Skip to content

Commit 1d74eed

Browse files
committed
Make sourcing publishing information optional
1 parent 608283d commit 1d74eed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sshlib/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ plugins {
44
}
55

66
apply plugin: 'java'
7-
apply from: "${rootDir}/publish.gradle"
7+
8+
if (new File("${rootDir}/publish.gradle").exists()) {
9+
logger.info("${rootDir}/publish.gradle found")
10+
apply from: "${rootDir}/publish.gradle"
11+
} else {
12+
logger.warn("publish.gradle not found")
13+
}
814

915
dependencies {
1016
compile fileTree(dir: 'libs', include: ['*.jar'])

0 commit comments

Comments
 (0)