shevek / jarjar

Jar Jar Links is a utility that makes it easy to repackage Java libraries and embed them into your own distribution.
Apache License 2.0
735 stars 93 forks source link

How to handle local module ? #21

Closed hannesa2 closed 1 year ago

hannesa2 commented 3 years ago

I want to exclude a class from local module. I can't to this direct in modules, because they are aar modules with build.gradle like

configurations.maybeCreate("default")
artifacts.add("default", file('abcdef.aar'))
dependencies {
    api project(":module1")
    // api project(":module2") <-- exclude a class

    api jarjar.repackage {
        from ":module2" <--- how to specify ?

        classDelete "com.google.something.**"
    }

But I run into


Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':library:detachedConfiguration3'.
   > Could not find :module2:.
     Required by:
         project :library

How to do so with local modules ? eg from project (":module2") doesn't work either