Skip to content

Commit 54bd720

Browse files
author
Vignesh Raja
authored
Fix build version generation (#62)
1 parent 23268f8 commit 54bd720

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core-api/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ dependencies {
1212
provided group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion, optional
1313
}
1414

15-
build << {
15+
task generateVersionFile {
1616
// add the build version information into a file that'll go into the distribution
1717
ext.buildVersion = new File(projectDir, "src/main/resources/optimizely-build-version")
1818
buildVersion.text = version
1919
}
20+
21+
build.finalizedBy(generateVersionFile)

0 commit comments

Comments
 (0)