Skip to content

Commit

Permalink
Resolve Gradle deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Jan 7, 2025
1 parent 4193cec commit b22a780
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ plugins {
id "org.sonarqube" version "$sonarqubePluginVersion"
}

group 'space.npstr.baymax'
version '0.0.1-SNAPSHOT'
group = 'space.npstr.baymax'
version = '0.0.1-SNAPSHOT'

java {
toolchain {
Expand All @@ -29,7 +29,7 @@ java {

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url = 'https://jitpack.io' }
}

configurations {
Expand Down Expand Up @@ -130,11 +130,14 @@ sonarqube {

processResources {
//inject values into app.properties
def projectVersion = project.version
def projectGroup = project.group
def projectName = project.name
filesMatching("**/app.properties") {
filter ReplaceTokens, tokens: [
"project.version" : project.version,
"project.groupId" : project.group,
"project.artifactId": project.name,
"project.version" : projectVersion,
"project.groupId" : projectGroup,
"project.artifactId": projectName,
"env.BUILD_NUMBER" : (System.getenv('CI') ? System.getenv('BUILD_NUMBER') : 'DEV'),
"env.BUILD_TIME" : System.currentTimeMillis() + ''
]
Expand Down

0 comments on commit b22a780

Please sign in to comment.