Skip to content

Commit ed2167c

Browse files
committed
Update pom version handling in java
1 parent 5696acc commit ed2167c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@
109109
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
110110
<mainClass>at.favre.tools.uberadb.AdbTool</mainClass>
111111
<manifestEntries>
112+
<Implementation-Title>${project.artifactId}</Implementation-Title>
112113
<Implementation-Version>${project.version}</Implementation-Version>
114+
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
113115
</manifestEntries>
114116
</transformer>
115117
</transformers>
@@ -130,7 +132,7 @@
130132
</execution>
131133
</executions>
132134
<configuration>
133-
<skip>false</skip> <!-- set this to true if fail because of missing credentials -->
135+
<skip>true</skip> <!-- set this to true if fail because of missing credentials -->
134136
<keystore>keystore.jks</keystore>
135137
<alias>pfopensource</alias>
136138
<storepass>${env.OPENSOURCE_PROJECTS_KS_PW}</storepass>

src/main/java/at/favre/tools/uberadb/util/CmdUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
package at.favre.tools.uberadb.util;
2020

21+
import at.favre.tools.uberadb.AdbTool;
2122
import at.favre.tools.uberadb.CmdProvider;
2223

2324
import java.io.File;
@@ -90,6 +91,6 @@ public static String concat(String[] array, String separator) {
9091
}
9192

9293
public static String jarVersion() {
93-
return CmdUtil.class.getPackage().getImplementationVersion();
94+
return AdbTool.class.getPackage().getImplementationVersion();
9495
}
9596
}

0 commit comments

Comments
 (0)