Skip to content
Permalink
Browse files

Getting Sign on jars

  • Loading branch information...
Nils Bokermann Nils Bokermann
Nils Bokermann authored and Nils Bokermann committed Jun 19, 2019
1 parent 6449783 commit 670679c98a7ced8b8c03473cd0f0e5c681b9abbb
Showing with 36 additions and 1 deletion.
  1. +29 −1 build.gradle
  2. +7 −0 gradle.properties
@@ -19,6 +19,7 @@ buildscript {
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'kotlin'
apply plugin: 'groovy'
apply plugin: 'signing'

repositories {
mavenCentral()
@@ -55,9 +56,36 @@ task('jaronly', type: Jar) {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}



task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}

artifacts {
archives sourcesJar
archives javadocJar
}



signing {
useGpgCmd()
sign jar
sign sourcesJar
sign javadocJar
}

@@ -0,0 +1,7 @@
signing.gnupg.executable=gpg
signing.gnupg.useLegacyGpg=true
signing.gnupg.homeDir=/home/nilsb/.gnupg
signing.gnupg.keyName=FBD5E131F8B81818250DD8E07DE288F6A440EF00
signing.gnupg.passphrase=verySecret


0 comments on commit 670679c

Please sign in to comment.
You can’t perform that action at this time.