Skip to content

Commit 112e175

Browse files
committed
Prepares 1.2.0
1 parent ca4da6b commit 112e175

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

app/src/main/groovy/jd/gui/view/MainDescription.groovy

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import javax.swing.WindowConstants
1919
import jd.gui.Constants
2020
import jd.gui.service.platform.PlatformService
2121

22+
import java.util.jar.Manifest
23+
2224
actions {
2325
action(
2426
id:'openAction',
@@ -262,10 +264,21 @@ dialog(
262264
}
263265
hbox {
264266
panel(layout:new GridLayout(2,2), opaque:false, border:emptyBorder([5,10,5,50])) {
267+
def jdGuiVersion = 'SNAPSHOT'
268+
def jdCoreVersion = 'SNAPSHOT'
269+
270+
getClass().classLoader.getResources('META-INF/MANIFEST.MF').each { uri ->
271+
uri.openStream().withStream { is ->
272+
def attributes = new Manifest(is).mainAttributes
273+
jdGuiVersion = attributes.getValue('JD-GUI-Version') ?: jdGuiVersion
274+
jdCoreVersion = attributes.getValue('JD-Core-Version') ?: jdCoreVersion
275+
}
276+
}
277+
265278
label(text: 'JD-GUI')
266-
label(text: 'version 1.1.0')
279+
label(text: 'version ' + jdGuiVersion)
267280
label(text: 'JD-Core')
268-
label(text: 'version 0.7.1')
281+
label(text: 'version ' + jdCoreVersion)
269282
}
270283
hglue()
271284
}

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'distribution'
33

44
// Common configuration //
55
allprojects {
6-
version='1.1.0'
6+
version='1.2.0'
77

88
apply plugin: 'eclipse'
99
apply plugin: 'idea'
@@ -56,7 +56,10 @@ jar {
5656
deps = deps.unique().collect { it.isDirectory() ? it : zipTree(it) }
5757

5858
manifest {
59-
attributes 'Main-Class': 'jd.gui.App', 'SplashScreen-Image': 'images/jd_icon_128.png'
59+
attributes 'Main-Class': 'jd.gui.App',
60+
'SplashScreen-Image': 'images/jd_icon_128.png',
61+
'JD-GUI-Version': project.version,
62+
'JD-Core-Version': '0.7.1'
6063
}
6164
from deps
6265
exclude 'META-INF/services/jd.gui.spi.*'

0 commit comments

Comments
 (0)