Commit 62913470 authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

conditional configuration

parent dbbe339d
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'signing'
project.version = '3.2.10' project.version = '3.2.10'
...@@ -28,10 +27,6 @@ task sourcesJar(type: Jar) { ...@@ -28,10 +27,6 @@ task sourcesJar(type: Jar) {
from sourceSets.main.allSource from sourceSets.main.allSource
} }
signing {
sign configurations.archives
}
jar { jar {
manifest { manifest {
attributes 'Main-Class': 'org.sablecc.sablecc.SableCC' attributes 'Main-Class': 'org.sablecc.sablecc.SableCC'
...@@ -44,6 +39,13 @@ artifacts { ...@@ -44,6 +39,13 @@ artifacts {
task deploy(dependsOn: [jar,test,javadoc], group: 'Build') task deploy(dependsOn: [jar,test,javadoc], group: 'Build')
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
uploadArchives { uploadArchives {
repositories { repositories {
mavenDeployer { mavenDeployer {
...@@ -89,3 +91,4 @@ uploadArchives { ...@@ -89,3 +91,4 @@ uploadArchives {
} }
} }
} }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment