Closed ghost closed 1 year ago
It looks like Gradle doesn't like lambda expressions, so I've removed them in commit https://github.com/bytedeco/gradle-javacpp/commit/f80b2f3cdffeb468a88ae1cbd10d4ef838f94d89. Please give it a try with the snapshots: http://bytedeco.org/builds/
Could not find javacpp-1.5.8-SNAPSHOT-android-arm.jar (org.bytedeco:javacpp:1.5.8-SNAPSHOT:20220604.134533-338).
Searched in the following locations:
https://oss.sonatype.org/content/repositories/snapshots/org/bytedeco/javacpp/1.5.8-SNAPSHOT/javacpp-1.5.8-20220604.134533-338-android-arm.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
The builds haven't finished, you'll need to wait until they do.
I had to make some edits to my project. The thing is that I'm developing a mod for Minecraft. JavaCpp doesn't know about the existence of net.fabricmc.api.ModInitializer;
or any other third-party libraries.
tasks.withType(org.bytedeco.gradle.javacpp.BuildTask).configureEach {
// set here default values for all build tasks below, typically just includePath and linkPath,
// but also properties to set the path to the NDK and its compiler in the case of Android
generate = true;
compile = false;
outputDirectory = file("$buildDir/../src/main/cpp");
classOrPackageNames = ['org.helixd2s.yavulkanmod.alter.*'];
}
If it's having problems finding a class you need, you'll need to add those to the class path with the buildscript { }
block:
https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies
We can have multiple BuildTask, that's not a problem.
You'll need to create those tasks.
You probably won't be able to target the same files with more than one BuildTask, if that's what you're asking, that's normal.
The fix for this issue has been released with version 1.5.8. Thanks for reporting!
Trying with latest Gradle...
Result: