Skip to content

covers1624/JarSignPlugin

Repository files navigation

JarSignPlugin

Simple gradle plugin for Jar signing.

Usage:

signing {
    //Can have multiple blocks, but tasks must not be duplicated across them
    jars {
        //Must be given Jar tasks.
        task jar
        //Or
        tasks [jar, srcJar, someOtherJar]        
        
        //The following are required as per Ant's sign task
        alias = 'someAlias'
        storePass = 'password'

        //The following are optional as per Ant's sign task
        keyStore = 'path/to/some/file/'
        storeType = 'jks'
        keyPass = 'password'
        sigFile = 'SomeName'
        internalSF = false
        sectionsOnly = false
        preserveLastModified = false
        tsaURL = 'http:signing.someplace.com/'
        tsaCert = 'tsaAlias'
    }
}

More documentation can be found on each of the individual parameters here.

Including or excluding specific files from signing

Standard include/exclude rules apply.

//sign + Task name with upper first character, 'signSrcJar', 'signSomeOtherJar'
signJar {
    include '**/*.class'
    exclude '**/com/apache/**.class'
}

About

Simple grale plugin for easy Jar signing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages