-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javacpp 1.5 build failed with Gradle #1311
Comments
Nothing major changed. What's the error message?
|
The error message that gradle return is non-zero exit.
and stacktrace as below
|
It doesn't say much. We'll need more information to debug this.
|
If I add args' //org.bytedeco.javacpp.tools.Builder.java
...
if (printPath != null) {
Collection<Class> classes = builder.classScanner.getClasses();
ClassProperties p = Loader.loadProperties(classes.toArray(new Class[classes.size()]), builder.properties, true);
builder.includeJavaPaths(p, builder.header);
for (String s : p.get(printPath)) {
System.out.println(s);
}
System.exit(0);
} else if (!addedClasses) {
printHelp();
System.exit(2);
}
... If I don't put |
My Gradle configuration is execute javacpp's builder after compile java task, then specific compiled java classes by |
I see what's missing. It used to process all classes by default, but this behavior was confusing, so now we need to specify the classes we want to process, just like it is for other tools like |
Thanks a lot. |
Bug fix included in just released JavaCPP 1.5.2! Thanks for reporting. |
BTW, a build plugin for Gradle is now available here: |
I've tried it. It is pretty good and easy to use. I look forward to seeing it release and publish to maven central. Thanks for your effort and time. |
Following configuration work perfect with Javacpp 1.4.x
But I got build failed exception as below since I upgrade Javacpp version to 1.5.x
Is there any migration guide for Gradle users?
The text was updated successfully, but these errors were encountered: