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

Please provide a ready-to-use "jarjar.jar" #3

Open aunkrig opened 9 years ago

aunkrig commented 9 years ago

Hello Shevek,

I desperately need a new version of the wonderful JARJAR tool, but have a hard time building it from source (I'm a GRADLE analphabet ;-) ). Could you please produce a JAR file?

Thank you in advance,

Arno

voidmain commented 7 years ago

A JAR file would be assume.

NathanSweet commented 7 years ago

FWIW, you can find the latest as of July 16, 2017 (version 1.0.0, commit 69d2972ea10eefa66cdc2c1c283cb6ef79b3c5ba) here: https://github.com/EsotericSoftware/reflectasm/raw/master/build/jarjar-command-1.0.0-all.jar This is packed into a single JAR and made executable.

artob commented 6 years ago

@NathanSweet Most helpful, thanks. Also, anyone stumbling onto this will want to read https://github.com/shevek/jarjar/issues/8

JekRock commented 4 years ago

For those who want to build a jar for command-line use you need to add the following to the jarjar-command/build.gradle

jar {
    manifest {
        attributes(
                'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
                'Main-Class': 'com.tonicsystems.jarjar.Main'
        )
    }

    from {
        configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
hannesa2 commented 3 years ago

I hope this will help https://github.com/shevek/jarjar/pull/20

abulka commented 1 year ago

@NathanSweet That link doesn't seem to work anymore.

@hannesa2 Thanks!

NathanSweet commented 1 year ago

@abulka It can be found in the history: https://github.com/EsotericSoftware/reflectasm/blob/ade0542b625ca094cab3662402a17d92c2e54615/build/jarjar-command-1.0.0-all.jar

hannesa2 commented 1 year ago

@abulka This is a dead repository and I was able to solve my issue with https://github.com/hannesa2/gradle-one-jar/ and here you can see the usage https://github.com/ytai/ioio/commit/08c6dd38a Maybe it helps.