ThalesGroup / JP2ForAndroid

A JPEG-2000 image encoder/decoder for Android
BSD 2-Clause "Simplified" License
59 stars 24 forks source link

jp2-android gradle dependency not found #4

Open mehmet6parmak opened 3 months ago

mehmet6parmak commented 3 months ago

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

beyonkuhre commented 3 months ago

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.

vladvlasov256 commented 3 months ago

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.

trhnburak commented 3 months ago

@vladvlasov256 nope it return 404 so

MatasAIzi1 commented 3 months ago

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

matthewbahr-clear commented 3 months ago

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
gitboss commented 2 months ago

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