sgtsilvio / gradle-proguard Goto Github PK
View Code? Open in Web Editor NEWGradle plugin to ease using ProGuard
License: Apache License 2.0
Gradle plugin to ease using ProGuard
License: Apache License 2.0
I get this following error
A problem occurred evaluating project ':app'.
Could not get unknown property 'proguardJar' for project ':app' of type org.gradle.api.Project.
plugins {
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.beryx.jlink' version '2.24.4'
id 'antlr'
id 'idea'
id 'application'
id 'com.github.sgtsilvio.gradle.proguard' version '0.3.3'
}
val proguardJar by tasks.registering(proguard.taskClass) {
inJars(tasks.shadowJar)
libraryJars(
javaLauncher.map { it.metadata.installationPath.dir("jmods").file("java.base.jmod") },
"!**.jar;!module-info.class"
)
outJars(base.libsDirectory.file("${project.name}-${project.version}-proguarded.jar"))
mappingFile.set(base.libsDirectory.file("${project.name}-${project.version}-mapping.txt"))
rules.addAll(
"-dontoptimize",
"-dontwarn !org.example.**",
"-flattenpackagehierarchy",
"-keep class org.example.Main { public static void main(java.lang.String[]); }",
"-keepattributes Signature,InnerClasses,*Annotation*"
)
}
Might be nice for a few small working example projects
Hi, it will be nice to have a way to load the Proguard configuration from a file than from typing by hand all the parameters.
like configurationFile = "proguard_config.txt"
If the jar paths have spaces, running the proguard task will fail with an error about the paths (in argument 2), where the path it reports is not the full path, just the part after the space. I highly suspect this is due to not quoting the file path arguments.
I am trying to use this on a project with java 8 but by default the plugin tries to get JMODs which aren't a thing until j9+
Example is this:
jdkModules.add("${System.getProperty("java.home")}/lib/rt.jar")
Causes:
Caused by: java.io.IOException: No such file or directory: C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\jre\lib\rt.jar.jmod
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/check.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
.github/workflows/publish.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
gradle.properties
settings.gradle.kts
build.gradle.kts
gradle/libs.versions.toml
com.gradle.plugin-publish 1.2.1
io.github.sgtsilvio.gradle.defaults 0.2.0
io.github.sgtsilvio.gradle.metadata 0.5.0
gradle/wrapper/gradle-wrapper.properties
gradle 8.7
I'm getting the following error after following the configuration in the README:
Execution failed for task ':services:my-service:proguardJar'.
> Cannot query the value of task ':services:my-service:proguardJar' property 'javaLauncher' because it has no value available.
Is there a configuration step that I missed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.