jarjar icon indicating copy to clipboard operation
jarjar copied to clipboard

Request for release into maven repository

Open cmeng-git opened this issue 4 years ago • 7 comments

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'

cmeng-git avatar Aug 24 '20 06:08 cmeng-git

@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.

liutikas avatar Nov 12 '20 22:11 liutikas

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

hannesa2 avatar Apr 07 '21 08:04 hannesa2

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: - https://dl.google.com/dl/android/maven2/org/anarres/jarjar/jarjar-gradle/1.0.3/jarjar-gradle-1.0.3.pom - https://repo.maven.apache.org/maven2/org/anarres/jarjar/jarjar-gradle/1.0.3/jarjar-gradle-1.0.3.pom - https://plugins.gradle.org/m2/org/anarres/jarjar/jarjar-gradle/1.0.3/jarjar-gradle-1.0.3.pom Required by: project :buildSrc

=============== 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

cmeng-git avatar Apr 08 '21 23:04 cmeng-git

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

ungesehn avatar Jul 27 '21 11:07 ungesehn

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

reisi007 avatar Oct 12 '21 20:10 reisi007

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

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

liutikas avatar Oct 12 '21 20:10 liutikas

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

cmeng-git avatar Apr 08 '22 03:04 cmeng-git