Gradle Shadow Fat/Uber Jar Plugin: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* [[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'
}
}