Code Monkey home page Code Monkey logo

gradle-proguard's People

Contributors

dc2-danielkrueger avatar renovate[bot] avatar sgtsilvio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gradle-proguard's Issues

Could not get unknown property

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

Get configuration from configuration file

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"

Fails if the jar paths have spaces

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.

Using this plugin with java 8?

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

Dependency Dashboard

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.

Detected dependencies

github-actions
.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
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/gradle-wrapper.properties
  • gradle 8.7

  • Check this box to trigger a request for Renovate to run again on this repository

javaLauncher value

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.