Gradle Shadow Fat/Uber Jar Plugin: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * https://github.com/johnrengelman/shadow * https://www.baeldung.com/gradle-fat-jar =Internal= * Gradle Plugin Concepts...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://github.com/johnrengelman/shadow | * https://github.com/johnrengelman/shadow | ||
* https://imperceptiblethoughts.com/shadow/introduction/ | |||
* https://www.baeldung.com/gradle-fat-jar | * https://www.baeldung.com/gradle-fat-jar | ||
=Internal= | =Internal= | ||
* [[Gradle_Plugin_Concepts#External_Plugins|Gradle Plugin Concepts]] | * [[Gradle_Plugin_Concepts#External_Plugins|Gradle Plugin Concepts]] | ||
=Overview= | =Overview= | ||
<syntaxhighlight lang='groovy'> | |||
plugins { | |||
id 'java' | |||
id 'com.github.johnrengelman.shadow' version '6.1.0' | |||
} | |||
... | |||
shadowJar { | |||
archiveBaseName.set('something') | |||
zip64 true | |||
manifest { | |||
attributes 'Main-Class': 'myPackage.MyClass' | |||
} | |||
} | |||
</syntaxhighlight> |
Latest revision as of 03:37, 15 December 2020
External
- https://github.com/johnrengelman/shadow
- https://imperceptiblethoughts.com/shadow/introduction/
- https://www.baeldung.com/gradle-fat-jar
Internal
Overview
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
...
shadowJar {
archiveBaseName.set('something')
zip64 true
manifest {
attributes 'Main-Class': 'myPackage.MyClass'
}
}