com.github.rholder.gradle
[Groovy] Class GradleOneJarPlugin
java.lang.Object
com.github.rholder.gradle.GradleOneJarPlugin
- All Implemented Interfaces:
- Plugin
class GradleOneJarPlugin
This plugin rolls up your current project's jar and all of its dependencies
into the the layout expected by One-JAR, producing a single runnable
fat-jar, similar to the following:
my-awesome-thing-1.2.3-standalone.jar
|
+---- com
| +---- simontuffs
| +---- onejar
| +---- Boot.class
| +---- (etc., etc.)
| +---- OneJarURLConnection.class
+---- doc
| +---- one-jar-license.txt
+---- lib
| +---- other-cool-lib-1.7.jar
| +---- some-cool-lib-2.5.jar
+---- main
| +-- main.jar
+---- META-INF
| +---- MANIFEST.MF
+---- OneJar.class
+---- .version
At a minimum, the configuration expects to find a custom 'mainClass' when
adding the plugin to your own builds, as in:
apply plugin: 'gradle-one-jar'
task awesomeFunJar(type: OneJar) {
mainClass = 'com.github.rholder.awesome.MyAwesomeMain'
}
|
Methods inherited from class java.lang.Object
|
| java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
apply
void apply(Project project)
-
Groovy Documentation