Set correct build version and date
This commit is contained in:
parent
abd309d8de
commit
a10f0828e7
5 changed files with 53 additions and 25 deletions
15
build.gradle
15
build.gradle
|
@ -2,17 +2,18 @@ apply plugin: 'java'
|
|||
repositories{
|
||||
mavenCentral()
|
||||
}
|
||||
def releaseVersion = "0.5.4"
|
||||
def propertyFile = file "src/main/java/w2phtml/project.properties"
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('project.properties').newDataInputStream())
|
||||
def releaseVersion = properties.getProperty('ReleaseVersion')
|
||||
def getDate() {
|
||||
return new Date().format('yyyyMMddHHmmss')
|
||||
}
|
||||
propertyFile.withReader { properties.load(it) }
|
||||
properties.setProperty('releaseDate', new Date().format('HH:mm:ss dd-MM-YYYY'))
|
||||
properties.setProperty('releaseVersion', releaseVersion )
|
||||
propertyFile.withWriter { properties.store(it, null) }
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
jar {
|
||||
manifest {
|
||||
attributes("Implementation-Title": "w2phtml",
|
||||
attributes("Implementation-Title": rootProject.name,
|
||||
"Implementation-Version": releaseVersion,
|
||||
"Main-Class" : "w2phtml.Application",
|
||||
"Class-Path" : "jasp.jar parser.jar")
|
||||
|
@ -46,7 +47,7 @@ jar {
|
|||
}
|
||||
task xhtml(type: Jar) {
|
||||
manifest {
|
||||
attributes("Implementation-Title": "w2phtml",
|
||||
attributes("Implementation-Title": rootProject.name,
|
||||
"Implementation-Version": releaseVersion,
|
||||
"Built-By": "litvinovg",
|
||||
"RegistrationClassName" : "org.openoffice.da.comp.writer2xhtml.W2XRegistration",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue