Skip to content

Commit

Permalink
Refactor build.gradle to improve releaseMode handling and update scri…
Browse files Browse the repository at this point in the history
…ptsUrl logic
  • Loading branch information
raikbitters committed Dec 19, 2024
1 parent 815c74a commit 63113d3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ plugins {
}

project.ext {
releaseMode = project.hasProperty("releaseMode")
releaseMode = project.hasProperty("releaseMode") ? project.releaseMode.toBoolean() : false
publishRepo = "https://maven.pkg.github.com/reportportal/plugin-api"
dependencyRepos = ["commons-model", "commons-rules", "commons-dao", "commons-bom"]
scriptVersion = project.hasProperty("scripts.version") ? project.scripts.version : "develop"
}

def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' +
(releaseMode ? getProperty('scripts.version') : 'develop')
def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' + scriptVersion

apply from: scriptsUrl + '/release-commons.gradle'
apply from: scriptsUrl + '/signing.gradle'
Expand Down Expand Up @@ -50,7 +50,6 @@ dependencies {
testImplementation 'junit:junit'
}


wrapper {
gradleVersion = '8.10'
}
//wrapper {
// gradleVersion = '8.10'
//}

0 comments on commit 63113d3

Please sign in to comment.