gradle-fatjar-plugin | Gradle FatJAR Plugin | Plugin library
kandi X-RAY | gradle-fatjar-plugin Summary
kandi X-RAY | gradle-fatjar-plugin Summary
WARNING: This plugin is no longer under active development. Please, migrate to Gradle Shadow Plugin which provides similar functionality. Gradle FatJar Plugin allows you to create JAR file with all dependencies bundled inside. It handles files in META-INF/services directory gracefully by merging them. It also allows you to create slim WAR file which contains only JAR with dependencies. Classes are also bundled into the JAR instead of putting them into WEB-INF/classes. Plugin is hosted on Bintray. You can easily add plugin to your build script using following configuration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-fatjar-plugin
gradle-fatjar-plugin Key Features
gradle-fatjar-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on gradle-fatjar-plugin
QUESTION
I've got a simple project in Gradle 4.6 and would like to make an executable jar of it. I've tried shadow
, gradle-fatjar-plugin
, gradle-one-jar
, spring-boot-gradle-plugin
plugins but neither of them adds my dependencies declared as implementation
(I don't have any compile
ones). It works with compile
e.g. for gradle-one-jar
plugin but I would like to have implementation
dependencies.
Thank you very much!
...ANSWER
Answered 2019-Mar-18 at 20:59You can use the following code.
QUESTION
I created a java 10 project with intelliJ, using gradle. I copied some stuff into it (some "AppFx" class using the library guava and javaFx, and a personal build.gradle file). I also added a module-info.java file in src/main/java with this content:
...ANSWER
Answered 2019-Jul-31 at 14:15The issue is Gradle still (as of 4.10-rc-2) doesn't have first-class support for Jigsaw modules. All the tasks will use the classpath, not the modulepath, when executing. This obviously will cause issues when trying to create a modular library/application (with module-info.java
).
If you want to use Jigsaw modules in your project you should read Building Java 9 Modules. Your scenario, as @nullpointer mentions, is best covered by this section of the linked document. The takeaway is to add the following to your build.gradle
file:
QUESTION
I am making a skeletton of a java project; the gradle build file has an annoying problem : tests are ran twice, one time by the task 'JUnitPlatformTest' and a second time by the task 'test'.
The first one seems to trigger the second, so I can't disable it, and I would like to keep the second one as there is a little difference between them : the first one is in the console (of intelliJ) and the second uses the integrated intelliJ window.
here is gradle.build
...ANSWER
Answered 2018-Aug-30 at 20:46According to this official website, ...
The JUnit Platform Gradle Plugin is deprecated
The very basic
junit-platform-gradle-plugin
developed by the JUnit team was deprecated in JUnit Platform 1.2 and will be discontinued in 1.3. Please switch to Gradle’s standard test task.
So you should remove this plugin from your build file and, if necessary, try to port the remaining settings to the test
task of the java
plugin.
QUESTION
Everything was working fine when starting my app using Intellij
. But when I made fatJar
(with gradle plugin: eu.appsatori.fatjar
) and execute:
ANSWER
Answered 2017-Oct-04 at 06:26gradle clean build
gradle bootRepackage
QUESTION
I've been looking for a solution for this for 4 days now with no success,
first doing the normal Gradle build task produced a tiny 7kB jar files which obviously didn't work, then i added the jar configuration for the main class:
...ANSWER
Answered 2017-Sep-14 at 16:07As per the comments here is what was tried.
- Making sure a main class is set
- Making sure the main class has the same full class name as the one defined
- Checking the manifest is valid
- Checking the class exists
- JavaFX may need a plugin
In the end the last one fixed the issue this was the plugin that fixed the issue.
This was the last comment in the chain:
@jrtapsell Well, this's embarrassing but i'v found the problem, i was unaware that JavaFX apps need a special plugin for Gradle, Using the FiberFox Plugin solved my issue, Thanks for your efforts and may you post answers so that i could upvote you if you like
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-fatjar-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page