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

Request for release into maven repository #16

Open cmeng-git opened 4 years ago

cmeng-git commented 4 years ago

Appreciate if you can consider release your jarjar libraries into the official maven repository, so aTalk can refer to it. aTalk release the apk into android playstore and Fdroid. Fdroid has restriction on inclusion of any pre-built jar into the source.

aTalk is an open source: https://github.com/cmeng-git/atalk-android

Currently aTalk build.gradle is making reference to 'org.anarres.jarjar' jarjar, but seems this tool has not been updated for a while and is facing some problem i.e. NullPointerException in LambdaClass.createLambdaImplMethodTarget

================= buildscript { repositories { google() jcenter() }

dependencies {
    classpath 'org.anarres.jarjar:jarjar-gradle:1.0.1' // working jarjar.repackage version
}

}

apply plugin: 'org.anarres.jarjar'

liutikas commented 3 years ago

@shevek we'd also love to get a new release of your plugin. We need to pick up ASM8 support upgrade

Please release 1.0.2 from current master.

hannesa2 commented 3 years ago

I hope this will help you https://github.com/shevek/jarjar/pull/20 but there is current no publish included

cmeng-git commented 3 years ago

Thanks for the new input. Would you be able to provide an example on how to use the jarjar 1.0.3 in gradle.

When I change the aTalk build.gradle to buildscript { repositories { google() mavenCentral() }

dependencies {
    classpath "org.anarres.jarjar:jarjar-gradle:1.0.3"
}

}

Gradle sync immediately exit with the following errors:

A problem occurred configuring project ':buildSrc'.

Could not resolve all artifacts for configuration ':buildSrc:classpath'. Could not find org.anarres.jarjar:jarjar-gradle:1.0.3. Searched in the following locations:

=============== For jarjar v1.0.1 it was released in the maven repository, hence there is no problem when v1.0.1 is used. https://mvnrepository.com/artifact/org.anarres.jarjar/jarjar-gradle

I also made refer to the following file, but none help. https://github.com/shevek/jarjar/blob/master/jarjar-gradle/example/build.gradle

ungesehn commented 3 years ago

@shevek Any chance to have an update released soon? Especially in the light of #22

reisi007 commented 2 years ago

Should we try to publish this repo from a fork under a different maven coordinate?

liutikas commented 2 years ago

I suggest moving to https://github.com/johnrengelman/shadow

That's what we ended up doing on my team.

cmeng-git commented 2 years ago

I tried on aTalk project but facing problem. Any advice will be appreciated.

Unable to use shadow to achieve the same result as jarjar tools for aTalk project #761