JP2ForAndroid icon indicating copy to clipboard operation
JP2ForAndroid copied to clipboard

jp2-android gradle dependency not found

Open mehmet6parmak opened this issue 1 year ago • 7 comments

The following dependency is missing on the maven repository? Could you check it out please?

The dependency

implementation 'com.gemalto.jp2:jp2-android:1.0.3'

Related mavenrepository page -> https://mvnrepository.com/artifact/com.gemalto.jp2/jp2-android/1.0.3

mehmet6parmak avatar Aug 05 '24 10:08 mehmet6parmak

Our build pipelines are also suddenly failing with:

Could not determine the dependencies of task ':app:buildGoogleReleasePreBundle'.

Could not resolve all task dependencies for configuration ':app:googleReleaseRuntimeClasspath'. Could not find com.gemalto.jp2:jp2-android:1.0.3.

beyonkuhre avatar Aug 05 '24 10:08 beyonkuhre

~~Looks like, the package can be found on jcenter. Don't forget to clean the browser cache when testing the link.~~

jcenter worked a couple of days, now it's 404 again.

vladvlasov256 avatar Aug 13 '24 08:08 vladvlasov256

@vladvlasov256 nope it return 404 so

trhnburak avatar Aug 24 '24 14:08 trhnburak

use huawei maven to download a package https://mirrors.huaweicloud.com/repository/maven after download you can override it

MatasAIzi1 avatar Aug 26 '24 14:08 MatasAIzi1

Use the jitpack override - https://github.com/ThalesGroup/JP2ForAndroid/issues/1

In your root build.gradle override dependencies like so:

allprojects {
  configurations.configureEach {
    resolutionStrategy.dependencySubstitution {
      substitute(platform(module('com.gemalto.jp2:jp2-android'))) using module('com.github.Tgo1014:JP2ForAndroid:1.0.4')
    }
    /* other strategies like so, if desired: */ resolutionStrategy.force 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
  }
  //etc

matthewbahr-clear avatar Aug 29 '24 16:08 matthewbahr-clear

Use the jitpack override - #1

In your root build.gradle override dependencies like so:

allprojects {
  configurations.configureEach {
    resolutionStrategy.dependencySubstitution {
      substitute(platform(module('com.gemalto.jp2:jp2-android'))) using module('com.github.Tgo1014:JP2ForAndroid:1.0.4')
    }
    resolutionStrategy.force 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
  }
  //etc

This worked

gitboss avatar Sep 11 '24 07:09 gitboss

i made some upgrade for new gradle : https://github.com/EucWang/jp2ForAndroid.git

EucWang avatar Jul 16 '25 13:07 EucWang