DanishOriginal post
Rank 2: Process
I'm working on sync with meilisearch java template and for testing the code on deployment i'm getting this build error:
Dockerfile
Building ...Compiling ...Downloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%
Welcome to Gradle 7.5.1!
Here are the highlights of this release: - Support for Java 18 - Support for building with Groovy 4 - Much more responsive continuous builds - Improved diagnostics for dependency resolution
For more details see https://docs.gradle.org/7.5.1/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:Build file '/usr/local/server/build.gradle' line: 25
* What went wrong:Could not determine the dependencies of task ':buildJar'.> Could not resolve all files for configuration ':runtimeClasspath'. > Could not find com.meilisearch.sdk:meilisearch-java:0.11.3. Searched in the following locations: - https://repo.maven.apache.org/maven2/com/meilisearch/sdk/meilisearch-java/0.11.3/meilisearch-java-0.11.3.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project :
* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 44s```Summary
I'm having a build failure on function deployment. I included the dependency in deps.gradle, but I'm getting a build error stating that it could not find com.meilisearch.sdk:meilisearch-java:0.11.3. Is there a solution?
Solution: It looks like Maven doesn't have version 0.11.3 yet. You can try using version 0.11.2 instead.