Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19888

Sigining inside subprojects

$
0
0

The solution so far that I was able to come with is:

task signJars {
    dependsOn( jar, sourceJar, javadocJar )
    signing {
        doLast {
            [jar, javadocJar, sourceJar].each {
                Task task ->
                    File file = task.archiveFile.get().asFile
                    if (file.exists()) {
                        sign file
                    } else {
                        println "Jar : " + file.name + " doesn't exists"
                    }
            }
        }
    }
}

The jars are successfully signed inside each module. I feel it’s a little bit inefficient but its working.


Viewing all articles
Browse latest Browse all 19888

Trending Articles