Skip to content

Commit f08d410

Browse files
committed
Added version
1 parent 78dabb2 commit f08d410

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dts-generator/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'java-library'
22

3+
def version = "2.0.0"
4+
35
project.ext.extractedDependenciesDir = "jar-files"
46
if(project.hasProperty("jarsOutput")) {
57
project.ext.extractedDependenciesDir = project.ext.jarsOutput
@@ -34,6 +36,8 @@ jar {
3436
//set main class for the jar
3537
manifest {
3638
attributes 'Main-Class': 'com.telerik.Main'
39+
attributes 'Specification-Version': version
40+
attributes 'Manifest-Version': version
3741
}
3842
}
3943

dts-generator/src/main/java/com/telerik/Main.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public static void main(String[] args) throws Exception {
3030

3131
long startTime = System.currentTimeMillis();
3232

33+
Package p = Main.class.getPackage();
34+
System.out.println("Android d.ts Generator Version : "
35+
+ p.getSpecificationVersion());
36+
3337
new Generator().start(inputParameters);
3438

3539
long stopTime = System.currentTimeMillis();

0 commit comments

Comments
 (0)