-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|