idiomatic-gradle
How do I idiomatically structure a large build with Gradle 7.2+? (by jjohannes)
samples
JavaFX samples to run with different options and build tools (by openjfx)
idiomatic-gradle | samples | |
---|---|---|
5 | 13 | |
480 | 585 | |
- | 1.2% | |
3.9 | 3.6 | |
3 months ago | 8 months ago | |
Java | Java | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
idiomatic-gradle
Posts with mentions or reviews of idiomatic-gradle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-13.
-
Android Developers Blog: Kotlin DSL is Now the Default for New Gradle Builds
You should look into how https://github.com/jjohannes/idiomatic-gradle and similar projects handle it (nowinandroid has a good set up as well).
-
just enough gradle
And finally, look at the idiomatic gradle repo. There is also a free video series that goes with this Understanding Gradle – Video Series. There are lots of bad practices in gradle that will slow your builds down, like using allProjects {}
-
For builds: Gradle vs Maven vs IntelliJ
I'd suggest getting rid of buildSrc, and just using build composition. I mentioned in another response, but check out https://github.com/jjohannes/idiomatic-gradle for how to use precompiled script plugins that are connected to the project via includedBuilds. The only issues I've had with this are generally resolved by just running the sub-build independently to resolve any caching issues in the 'primary' build. A simple gradlew build --settings-file ./build-logic/settings.gradle.kts run will generally resolve that, and that issue seems largely because of the 'root' build being a peer or anscestor of the included build (due to legacy structure of the project, an issue the linked example repo does not have).
-
Herding elephants: Wrangling a 3,500-module Gradle project
When we initially migrated from buildSrc to an included build, it seemed an elegant solution to the problems outlined above. We were dropping buildSrc, with all its problems, and using the modern facility that Gradle considers the preferred, idiomatic replacement for buildSrc. (For a very elaborate example of this, see the idiomatic-gradle repo by former Gradle engineer Jendrik Johannes.) Included builds are indeed the best of both worlds in many ways: they can exist under version control in the same repository as the build that uses them; they can be easily opened in a separate IDE instance, improving build engineer productivity; they don't have the automatic test behavior of buildSrc, which improves feature engineer performance; and they're generally very well-behaved, without any of the magic of buildSrc.
samples
Posts with mentions or reviews of samples.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-08.
-
NoClassDefFoundError while trying to run javafx programs made with maven.
If you're relatively new to this, I would recommend checking out the JavaFX documentation at https://openjfx.io/openjfx-docs/#maven and starting from the samples: https://github.com/openjfx/samples/tree/master/HelloFX/Maven
-
problems with javafx in intellij
i also replaced the build.gradle file contents with what the openJFX suggested i changed it to. then i sync'd it after changing the javafx version in that .gradle file to 17.0.1 instead of 16.
-
Help posting projects to GitHub and job search
An example pom file (maven) for a JavaFX program looks like https://github.com/openjfx/samples/blob/master/HelloFX/Maven/hellofx/pom.xml
- Exporting javafx project to runnable .jar file
-
JavaFX
Yes, JavaFX is a pain to configure. I'd recommend using Maven or Gradle with the JavaFX plugin to manage your application, that way you don't need to download and configure the entire OpenJFX SDK. There are samles for both Maven and Gradle in the repo you linked, so I would try them out. Note that only the Gradle sample includes a wrapper, so if you try the Maven sample you'll need to install Maven first.
- Why people don't love Java?
-
IntelliJ JavaFX Jar file
Non-modular project (i.e. not using java modules): https://github.com/openjfx/samples/blob/master/CommandLine/Non-modular/Gradle/hellofx/build.gradle
-
beginner need help
example maven no modular project structure here https://github.com/openjfx/samples/tree/master/IDE/Eclipse/Non-Modular/Maven/hellofx/src/main
- Advice on code/project structure?
- Question about IDE