Add multi-release: true to jar artifcats

Required, due to log4j2 included in ProGuardCORE 8.0.0
This commit is contained in:
James Hamilton
2021-07-26 20:17:14 +02:00
parent 5b02980ffe
commit 2d806bbfad
5 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ task fatJar(type: ShadowJar) {
manifest {
attributes(
'Manifest-Version': '1.0',
'Multi-Release': true,
'Implementation-Version': archiveVersion.get())
}
}

View File

@@ -42,7 +42,13 @@ dependencies {
}
}
jar.manifest.attributes('Implementation-Version': version)
jar {
manifest {
attributes(
'Multi-Release': true,
'Implementation-Version': archiveVersion.get())
}
}
// Early access automatic downloads are not yet supported:
// https://github.com/gradle/gradle/issues/14814

View File

@@ -41,6 +41,7 @@ task fatJar(type: ShadowJar) {
attributes(
'Manifest-Version': '1.0',
'Main-Class': 'proguard.gui.ProGuardGUI',
'Multi-Release': true,
'Implementation-Version': archiveVersion.get())
}
}

View File

@@ -27,6 +27,7 @@ task fatJar(type: ShadowJar) {
manifest {
attributes(
'Main-Class': 'proguard.ProGuard',
'Multi-Release': true,
'Implementation-Version': archiveVersion.get())
}
}

View File

@@ -38,6 +38,7 @@ task fatJar(type: ShadowJar) {
manifest {
attributes(
'Manifest-Version': '1.0',
'Multi-Release': true,
'Main-Class': 'proguard.retrace.ReTrace')
}
}