Skip to content

Commit

Permalink
fix: update ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
iamceph committed Mar 17, 2022
1 parent 3d71bc0 commit 97cde1f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ plugins {

apply from: '../publishing.gradle'

System.setProperty("gradle.publish.key", System.getenv('GRADLE_PUBLISH_KEY'))
System.setProperty("gradle.publish.secret", System.getenv('GRADLE_PUBLISH_SECRET'))
def publishKey = System.getenv('GRADLE_PUBLISH_KEY')
def publishSecret = System.getenv('GRADLE_PUBLISH_SECRET')
if (publishSecret != null && publishKey != null) {
System.out.println("Setting publish key/secret.")
System.setProperty("gradle.publish.key", publishKey)
System.setProperty("gradle.publish.secret", publishSecret)
} else {
System.out.println("Key/Secret not available for publishing!")
}


dependencies {
compileOnly gradleApi()
Expand Down

0 comments on commit 97cde1f

Please sign in to comment.