mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 15:04:24 +02:00
Hardcoded project.version in POMs, removed ${aversion} property.
Property substitution is not allowed in /project/parent/(groupId|artifactId|version) or in /project/(groupId|artifactId|version) - it sometimes works and sometimes not.
This commit is contained in:
parent
269870bad6
commit
f056603d8c
@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>brut.apktool</groupId>
|
||||
<artifactId>apktool-cli</artifactId>
|
||||
<version>${aversion}</version>
|
||||
<version>1.4.2-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
@ -47,9 +47,9 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>brut.apktool</groupId>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>apktool-lib</artifactId>
|
||||
<version>${aversion}</version>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>brut.apktool</groupId>
|
||||
<artifactId>apktool-lib</artifactId>
|
||||
<version>${aversion}</version>
|
||||
<version>1.4.2-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
|
@ -375,7 +375,7 @@ public class Androlib {
|
||||
}
|
||||
|
||||
public static String getVersion() {
|
||||
String version = ApktoolProperties.get("aversion");
|
||||
String version = ApktoolProperties.get("version");
|
||||
return version.endsWith("-SNAPSHOT") ?
|
||||
version.substring(0, version.length() - 9) + '.' +
|
||||
ApktoolProperties.get("git.commit.id.abbrev")
|
||||
|
@ -1,2 +1,2 @@
|
||||
aversion = ${aversion}
|
||||
version = ${project.version}
|
||||
git.commit.id.abbrev = ${git.commit.id.abbrev}
|
||||
|
Loading…
x
Reference in New Issue
Block a user