Skip to content

Commit

Permalink
Ignore sonatype credentials for Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Aug 27, 2018
1 parent f1d4cd5 commit f05d7de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Expand Up @@ -10,6 +10,7 @@ apply plugin: 'signing'
group = 'net.joshka'
version = '1.1.0'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext.isRunningOnTravis = System.getenv("CI") == "true"

description = """net.joshka:junit-json-params"""

Expand Down Expand Up @@ -102,8 +103,8 @@ publishing {
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = isReleaseVersion ? releasesRepoUrl : snapshotsRepoUrl
credentials(PasswordCredentials) {
username = sonatypeUsername
password = sonatypePassword
username = isRunningOnTravis ? '' : sonatypeUsername
password = isRunningOnTravis ? '' : sonatypePassword
}
}
}
Expand Down

0 comments on commit f05d7de

Please sign in to comment.