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
Working Build! Use the actual Engine Version by patching the version.gradle and using some temporary files. Also the build failed due to the suite not paying attention to case-sensitiveness.
// Since it's a bit problematic to call version.gradle from a different directory and project (it won't pick the right repo, it won't export the vars), we copy and patch it a bit
45
+
46
+
copy {
47
+
from 'suite/engine'
48
+
into '.'
49
+
include 'version.gradle'
50
+
filter { line->
51
+
line = line.replace("def grgit = Grgit.open(project.file('.'))", "def grgit = Grgit.open(project.file('suite/engine/'))")
52
+
line = line.replace("import java.text.SimpleDateFormat", "ext.jmeVersion = \"3.1.0\"\n"+
53
+
"ext.jmeMainVersion = \"3.1\"\n"+
54
+
"ext.jmeVersionTag = \"SNAPSHOT\"\n"+
55
+
"ext.jmeVersionTagID = \"0\"\n"+
56
+
"import java.text.SimpleDateFormat")
57
+
} // Properties and git repo
58
+
59
+
def f = file("task.tmp")
60
+
f.text ="task writeVersion(dependsOn: configureVersionInfo) << {\n"+// since I can't find a way to access those version files..
0 commit comments