Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
Adding deployment on central repo
Setting the version to 0.3

Change-Id: Ib3fc110d2a198f4c8654a8c5efbee5581f7886fb
  • Loading branch information
Benoit Corne committed Mar 6, 2015
1 parent 1349868 commit 21667d5
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,75 @@ apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'cobertura'
apply plugin: 'eclipse'
apply plugin: 'signing'

group = 'com.ullink.slack'
archivesBaseName = 'simpleslackapi'
version = '0.3
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Simple Slack API'
packaging 'jar'
// optionally artifactId can be defined here
description 'A application used as an example on how to set up pushing its components to the Central Repository.'
url 'http://www.example.com/example-application'

scm {
connection 'scm:git:[email protected]:Ullink/simple-slack-api.git'
developerConnection 'scm:git:[email protected]:Ullink/simple-slack-api.git'
url '[email protected]:Ullink/simple-slack-api.git'
}

licenses {
license {
name 'CC0 1.0 Universal (CC0 1.0)'
url 'http://creativecommons.org/publicdomain/zero/1.0/'
}
}

developers {
developer {
id 'bcorne'
name 'Benoit Corne'
email '[email protected]'
}
}
}
}
}
}
dependencies {
compile 'org.glassfish.tyrus.bundles:tyrus-standalone-client:1.8.3'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
Expand Down

0 comments on commit 21667d5

Please sign in to comment.