Gradle Shadow Fat/Uber Jar Plugin: Difference between revisions

From NovaOrdis Knowledge Base
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

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'
    }
}