build: fix build errors
This commit is contained in:
parent
0aaa28e66b
commit
3b9e412f80
@ -65,7 +65,7 @@ task libDist(dependsOn: subprojects.build) << {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"Package the nightly zip distribution"){
|
task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"Package the nightly zip distribution"){
|
||||||
archiveName "jME" + releaseInfo.fullVersion + ".zip"
|
archiveName "jME" + jmeFullVersion + ".zip"
|
||||||
into("/") {
|
into("/") {
|
||||||
from {"./dist"}
|
from {"./dist"}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ dependencies {
|
|||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Implementation-Title': 'jMonkeyEngine',
|
attributes 'Implementation-Title': 'jMonkeyEngine',
|
||||||
'Implementation-Version': releaseInfo.fullVersion
|
'Implementation-Version': jmeFullVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,12 +39,21 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'org.ajoberstar:gradle-git:1.4.1'
|
classpath 'org.ajoberstar:gradle-git:1.2.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
releaseInfo = null;
|
jmeRevision = 0
|
||||||
|
jmeNbmRevision = 0
|
||||||
|
jmeGitHash = ""
|
||||||
|
jmeGitTag = ""
|
||||||
|
jmeShortGitHash = ""
|
||||||
|
jmeBuildDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date())
|
||||||
|
jmeBranchName = "unknown"
|
||||||
|
jmeFullVersion = "${jmeVersion}-UNKNOWN"
|
||||||
|
jmePomVersion = "unknown"
|
||||||
|
jmeNbmUcSuffix = "unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
def getReleaseInfo(String tag) {
|
def getReleaseInfo(String tag) {
|
||||||
@ -158,7 +167,5 @@ task configureVersionInfo {
|
|||||||
// Failed to get repo info
|
// Failed to get repo info
|
||||||
logger.warn("Failed to get repository info: " + ex.message + ". " + \
|
logger.warn("Failed to get repository info: " + ex.message + ". " + \
|
||||||
"Only partial build info will be generated.")
|
"Only partial build info will be generated.")
|
||||||
|
|
||||||
releaseInfo = new ReleaseInfo(jmeVersion);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user