Hi Kevin, My local repository is up-to-date with the jfx repository.
The failure happens while trying to copy swt-debug.jar: $ sh gradlew sdk ... > Task :swt:classes FAILED FAILURE: Build failed with an exception. * Where: Build file '/tmp/jfx/build.gradle' line: 2677 * What went wrong: Execution failed for task ':swt:classes'. > Entry swt-debug.jar is a duplicate but no duplicate handling strategy has > been set. Please refer to > https://docs.gradle.org/7.0.1/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy > for details. P.S. Adding a `duplicatesStrategy` to the copy task also helps with the issue. --Abhinay ________________________________ From: openjfx-dev <openjfx-dev-r...@openjdk.java.net> on behalf of Kevin Rushforth <kevin.rushfo...@oracle.com> Sent: Friday, August 13, 2021 1:22 AM To: openjfx-dev@openjdk.java.net <openjfx-dev@openjdk.java.net> Subject: Re: apps compilation fails on ubuntu 20.04 I still need to catch up on my email, since I still have the original question in my queue. The answer to the original query is that there is a known bug with ant 1.10.7 [1] that will cause this error. You can either use ant 1.10.5 (which is the one we specify in build.properties) or use ant 1.10.8. As for the gradle sdk problem, I've not seen any problems relating to using gradle 7.0.1. Is your repo up to date? Specifically, you need the following commit: https://github.com/openjdk/jfx/commit/111bac4180a646662a81223bdbb56880789d5a90 -- Kevin [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=63874 On 8/12/2021 12:33 PM, Abhinay Agarwal wrote: > I am on Ubuntu 20.04. Using ANT 1.10.8, "gradlew apps" works for me. > > However, "gradlew sdk" fails for me since we upgraded to Gradle 7.0.1. I > always switch back to Gradle 6.9 to build a local sdk. > ________________________________ > From: openjfx-dev <openjfx-dev-r...@openjdk.java.net> on behalf of Thiago > Milczarek Sayão <thiago.sa...@gmail.com> > Sent: Friday, August 6, 2021 8:05 AM > To: openjfx-dev@openjdk.java.net <openjfx-dev@openjdk.java.net> > Subject: apps compilation fails on ubuntu 20.04 > > Hi > > Does anyone knows how to get *gradlew apps* working on ubuntu 20.04? > > I have: > Apache Ant(TM) version 1.10.7 compiled on October 24 2019 > openjdk version "16.0.1" 2021-04-20 > > I want to run the test apps. > > -do-compile: > [javac] Compiling 143 source files to > /home/tsayao/IdeaProjects/jfx/apps/samples/3DViewer/build/classes > [javac] error: invalid flag: > @/home/tsayao/IdeaProjects/jfx/build/compile.args > [javac] Usage: javac <options> <source files> > [javac] use --help for a list of possible options > > Thanks.