nixxcode / jvm-brotli

Lightweight, cross-platform Java library for the Brotli compression format
72 stars 10 forks source link

Does this work with Gradle as Maven #37

Open ashish-sharma09 opened 4 years ago

ashish-sharma09 commented 4 years ago

On Gradle it does not seem to be downloading the native library. I had to include following dependency explicitly to get it working on my machine

    implementation group: 'com.nixxcode.jvmbrotli', name: 'jvmbrotli', version: '0.2.0'
    implementation group: 'com.nixxcode.jvmbrotli', name: 'jvmbrotli-darwin-x86-amd64', version: '0.2.0'

However, the example project works fine on my machine.

Is it expected to work with Gradle the same way it works with Maven?

rohit5ram commented 3 years ago

I tried to use the library as gradle dependency in my android project. @ashish-sharma09 It does not download the native library.

BrotliLoader.isBrotliAvailable() returns false

I tried adding

implementation group: 'com.nixxcode.jvmbrotli', name: 'jvmbrotli', version: '0.2.0'
implementation group: 'com.nixxcode.jvmbrotli', name: 'jvmbrotli-natives', version: '0.2.0'

Can you please help solve the problem?