You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewGradleException("../android-metadata-generator directory not found and no metadataGenSrc option specified. Clone the android-metadata-generator repo first.\n");
thrownewGradleException("android-metadata-generator build output not found and no metadataGen option specified. Build android-metadata-generator first.\n");
33
42
}
34
43
}
35
44
36
-
// task checkAndroidCommand(type:Exec) {
37
-
// if(isWinOs) {
38
-
// commandLine "cmd", "/c", "android", "-h"
39
-
// }
40
-
// else {
41
-
// commandLine "android", "-h"
42
-
// }
43
-
44
-
// ignoreExitValue = true
45
-
46
-
// doLast {
47
-
// def successResult = isWinOs ? 0 : 1
48
-
49
-
// if (execResult.exitValue != successResult) {//1 is ok result for android tool
50
-
// throw new GradleException("\n--> 'android' command not found. Set the PATH variable to include the path to Android SDK Tools directory.\n\nError: " + errorOutput + "\nexitValue: " + execResult.exitValue)
51
-
// }
52
-
// }
53
-
// }
54
-
55
45
task cleanDistDir (type: Delete) << {
56
46
delete distDir
57
47
}
@@ -79,10 +69,22 @@ task getPackageVersion << {
79
69
pVersion = packageJsonMap.version
80
70
81
71
println"The package version from package.json is '${pVersion}'"
72
+
73
+
if (project.hasProperty("preReleaseVersion")) {
74
+
pVersion +="-"+ preReleaseVersion
75
+
}
76
+
77
+
println"The runtime version is '${pVersion}'"
82
78
}
83
79
84
80
task getCommitVersion << {
85
-
if("$System.env.GIT_COMMIT"!="null") {
81
+
82
+
if (project.hasProperty("gitCommitVersion")) {
83
+
println"Using commit version property "+ gitCommitVersion
84
+
arVersion = gitCommitVersion
85
+
}
86
+
elseif ("$System.env.GIT_COMMIT"!="null") {
87
+
println"Using commit version environment variable "+ $System.env.GIT_COMMIT
0 commit comments