
Working on sync-with-meilisearch java-17 template and on deploying the function, I get buildJar fail error. Using self-hosted appwrite v1.4.3. Err: ```
Task :compileJava Note: /usr/local/server/src/main/java/io/openruntimes/java/Server.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /usr/local/server/src/main/java/io/openruntimes/java/Server.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
Task :processResources Task :classes Task :buildJar FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':buildJar'.
Entry module-info.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.```

What dependencies did you add to your deps.gradle?

implementation 'io.appwrite:sdk-for-kotlin:4.0.0'
implementation 'com.meilisearch.sdk:meilisearch-java:0.11.2'
}```

What's in your folder that's being uploaded?

src/Main.java, static/index.html, deps.gradle, .env, Readme.md, and .gitignore

maybe you can try:
dependencies {
implementation 'io.appwrite:sdk-for-kotlin:4.0.0'
implementation 'com.meilisearch.sdk:meilisearch-java:0.11.2'
}
tasks.withType(Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
I got it to build by doing this...i don't really know java to know more about this, though

worked thanks

[SOLVED] BuildJar failed on deploying function
Recommended threads
- Sharing Auth Provider Refresh Token
For some reason, the identities api always return empty "providerRefreshToken" property in response (in my case it is google), which make sense to not share wit...
- Issue Adding Environment Variables After...
Hey everyone, I just created a new function and pushed it successfully. Now I'm trying to add some environment variables to that function, but I'm hitting an e...
- "NetworkError when attempting to fetch r...
I was trying to upload a function manually which is about 30MB and 9.15MB when in `.tar.gz` form, but getting `NetworkError when attempting to fetch resource.`....
