diff --git a/build.gradle b/build.gradle index 829f1ed97..bf7963179 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ plugins { version = "1.21.0" apply plugin: "com.dipien.semantic-version" -version = project.hasProperty("ddprof_version") ? project.ddprof_version : version +version = project.findProperty("ddprof_version") ?: version allprojects { repositories { diff --git a/gradle/configurations.gradle b/gradle/configurations.gradle index 996f40a79..3255d961b 100644 --- a/gradle/configurations.gradle +++ b/gradle/configurations.gradle @@ -102,6 +102,9 @@ ext { locateLibtsan = this.&locateLibtsan } +// make sure the provided version is correctly propagated to the build +version = project.findProperty("ddprof_version") ?: version + // ======= Define build configurations below ======== def commonLinuxCompilerArgs = [