101 lines
3.7 KiB
Diff
101 lines
3.7 KiB
Diff
diff --git a/build.gradle b/build.gradle
|
|
index f521868..3168766 100644
|
|
--- a/build.gradle
|
|
+++ b/build.gradle
|
|
@@ -62,9 +62,6 @@ rootProject.uploadArchives.enabled = false
|
|
|
|
subprojects {
|
|
apply plugin: 'maven'
|
|
- apply plugin: 'signing'
|
|
-
|
|
- final boolean shouldSign = "true".equalsIgnoreCase(System.properties.getProperty("procyon.signing.enabled"))
|
|
|
|
archivesBaseName = "procyon-${(it.name as String).split('\\.')[1].toLowerCase()}"
|
|
|
|
@@ -131,86 +128,6 @@ subprojects {
|
|
archives javadocJar
|
|
archives sourcesJar
|
|
}
|
|
-
|
|
- if (shouldSign) {
|
|
- signing {
|
|
- sign configurations.archives
|
|
- }
|
|
- }
|
|
-
|
|
- uploadArchives {
|
|
- repositories.mavenDeployer {
|
|
- if (shouldSign) {
|
|
- beforeDeployment { MavenDeployment deployment ->
|
|
- signing.signPom(deployment)
|
|
- }
|
|
- }
|
|
-
|
|
- snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
|
|
- authentication(userName: project.properties.get("procyon.sonatype.username"),
|
|
- password: project.properties.get("procyon.sonatype.password"))
|
|
- }
|
|
-
|
|
- repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
|
|
- authentication(userName: project.properties.get("procyon.sonatype.username"),
|
|
- password: project.properties.get("procyon.sonatype.password"))
|
|
- }
|
|
-
|
|
- pom {
|
|
- groupId = project.group
|
|
- version = project.version
|
|
- artifactId = project.archivesBaseName
|
|
-
|
|
- project {
|
|
- name project.archivesBaseName
|
|
- packaging 'jar'
|
|
- description 'Procyon'
|
|
- url 'https://bitbucket.org/mstrobel/procyon'
|
|
-
|
|
- scm {
|
|
- url 'https://bitbucket.org/mstrobel/procyon'
|
|
- connection 'scm:hg:https://hg@bitbucket.org/mstrobel/procyon'
|
|
- developerConnection 'scm:hg:https://mstrobel@bitbucket.org/mstrobel/procyon'
|
|
- }
|
|
-
|
|
- issueManagement {
|
|
- system 'jira'
|
|
- url 'https://bitbucket.org/mstrobel/procyon/issues'
|
|
- }
|
|
-
|
|
- licenses {
|
|
- license {
|
|
- name 'The Apache Software License, Version 2.0'
|
|
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
- distribution 'repo'
|
|
- }
|
|
- }
|
|
-
|
|
- developers {
|
|
- developer {
|
|
- id 'mstrobel'
|
|
- name 'Mike Strobel'
|
|
- roles {
|
|
- role 'owner'
|
|
- role 'packager'
|
|
- role 'developer'
|
|
- }
|
|
- }
|
|
- }
|
|
-
|
|
- dependencies {
|
|
- dependency {
|
|
- groupId 'junit'
|
|
- artifactId 'junit'
|
|
- version '4.11'
|
|
- scope 'test'
|
|
-// optional = true
|
|
- }
|
|
- }
|
|
- }
|
|
- }
|
|
- }
|
|
- }
|
|
}
|
|
}
|
|
|