Back

[SOLVED] Build Failure on function deployment

  • 0
  • Functions
Danish
5 Oct, 2023, 17:09

I'm working on sync with meilisearch java template and for testing the code on deployment i'm getting this build error:

TypeScript
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```
TL;DR
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.
Danish
5 Oct, 2023, 17:10

I've included the dependency in deps.gradle: dependencies { implementation 'io.appwrite:sdk-for-kotlin:2.0.0' implementation 'com.meilisearch.sdk:meilisearch-java:0.11.3' }

Drake
5 Oct, 2023, 18:28

try 0.11.2?

Danish
5 Oct, 2023, 18:35

worked. Thanks.

Drake
5 Oct, 2023, 18:46

ya looks like maven doesn't have 0.11.3 yet

Danish
5 Oct, 2023, 19:13

[SOLVED]Build Failure on function deployment

Drake
5 Oct, 2023, 19:19

[SOLVED] Build Failure on function deployment

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more