Skip to content

Commit

Permalink
Merge pull request #40908 from manofthepeace/removeDeprecatedVineflower
Browse files Browse the repository at this point in the history
Remove deprecated vineflower properties support
  • Loading branch information
gsmet authored Jun 4, 2024
2 parents 6f0aebc + 0a2b5fd commit aad3d22
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ public final class ConfigCompatibility {
ConfigCompatibility::quarkusPackageDecompilerEnabled),
entry(List.of("quarkus", "package", "decompiler", "jar-directory"),
ConfigCompatibility::quarkusPackageDecompilerJarDirectory),
entry(List.of("quarkus", "package", "vineflower", "version"),
ConfigCompatibility::quarkusPackageDecompilerVersion),
entry(List.of("quarkus", "package", "vineflower", "enabled"),
ConfigCompatibility::quarkusPackageDecompilerEnabled),
entry(List.of("quarkus", "package", "vineflower", "jar-directory"),
ConfigCompatibility::quarkusPackageDecompilerJarDirectory),
entry(List.of("quarkus", "package", "manifest", "attributes", "*"),
ConfigCompatibility::quarkusPackageManifestAttributes),
entry(List.of("quarkus", "package", "manifest", "sections", "*", "*"),
Expand Down Expand Up @@ -510,11 +504,7 @@ private static ConfigValue quarkusPackageJarManifestAddImplementationEntries(Con
private static ConfigValue quarkusPackageJarDecompilerEnabled(ConfigSourceInterceptorContext ctxt, NameIterator ni) {
ConfigValue oldVal = ctxt.restart("quarkus.package.decompiler.enabled");
if (oldVal == null) {
oldVal = ctxt.restart("quarkus.package.vineflower.enabled");
if (oldVal == null) {
// on to the default value
return ctxt.proceed(ni.getName());
}
return ctxt.proceed(ni.getName());
}
// map old name to new name
return oldVal.withName(ni.getName());
Expand All @@ -523,11 +513,7 @@ private static ConfigValue quarkusPackageJarDecompilerEnabled(ConfigSourceInterc
private static ConfigValue quarkusPackageJarDecompilerJarDirectory(ConfigSourceInterceptorContext ctxt, NameIterator ni) {
ConfigValue oldVal = ctxt.restart("quarkus.package.decompiler.jar-directory");
if (oldVal == null) {
oldVal = ctxt.restart("quarkus.package.vineflower.jar-directory");
if (oldVal == null) {
// on to the default value
return ctxt.proceed(ni.getName());
}
return ctxt.proceed(ni.getName());
}
// map old name to new name
return oldVal.withName(ni.getName());
Expand Down

0 comments on commit aad3d22

Please sign in to comment.