Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["sonatypeStagingProfileId"] = ''

// Read local.properties file first if it exists
Properties p = new Properties()
new FileInputStream("local.properties").withCloseable { is -> p.load(is) }
def localPropertiesFile = file("local.properties")
// Read local.properties file if it exists
if (localPropertiesFile.exists()) {
p.load(localPropertiesFile.newInputStream())
}
p.each { name, value -> ext[name] = value }

// Set up Sonatype repository
Expand Down