diff --git a/build.gradle b/build.gradle index bed863e..c0501dd 100644 --- a/build.gradle +++ b/build.gradle @@ -13,8 +13,8 @@ plugins { } apply plugin: 'com.gradle.plugin-publish' -apply plugin: 'signing' apply plugin: 'maven' +apply plugin: 'signing' apply plugin: 'groovy' group = 'com.github.maiflai' @@ -49,11 +49,14 @@ task sourcesJar(type: Jar) { test.dependsOn(jar) artifacts { - archives jar archives groovydocJar archives sourcesJar } +signing { + sign configurations.archives +} + if (project.version == 'unspecified') { version = '0.1-SNAPSHOT' project.signArchives.enabled = false