Skip to content

Commit

Permalink
Use the ext plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Nov 1, 2023
1 parent 16a49aa commit a3c7855
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ repositories {
}

if (System.getenv('GPP_KEY')) {
project.setProperty('gradle.publish.key', System.getenv('GPP_KEY'))
project.setProperty('gradle.publish.secret', System.getenv('GPP_SECRET'))
project.ext {
set('gradle.publish.key', System.getenv('GPP_KEY'))
set('gradle.publish.secret', System.getenv('GPP_SECRET'))
}
}

dependencies {
Expand Down

0 comments on commit a3c7855

Please sign in to comment.