Skip to content

Commit

Permalink
VER seeting version to 0.3.1
Browse files Browse the repository at this point in the history
Change-Id: Ibcc230b3a9a6eed27c933de46473b5cbf13088ae
  • Loading branch information
Benoit Corne committed Apr 13, 2015
1 parent bcc8d47 commit eb60c12
Showing 1 changed file with 60 additions and 43 deletions.
103 changes: 60 additions & 43 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:2.2.4"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}

repositories {
mavenCentral()
jcenter()
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'cobertura'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

group = 'com.ullink.slack'
archivesBaseName = 'simpleslackapi'
version = '0.3.1-SNAPSHOT'
version = '0.3.1'


task javadocJar(type: Jar) {
Expand All @@ -41,50 +44,64 @@ 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/'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
def node = asNode()
node.appendNode('name','Simple Slack API')
node.appendNode('description','A simple API to build bot running on Slack')
node.appendNode('url','https://github.com/Ullink/simple-slack-api')
def licenseNode = node.appendNode('licenses').appendNode('license')
licenseNode.appendNode('name','CC0 1.0 Universal (CC0 1.0)')
licenseNode.appendNode('url','http://creativecommons.org/publicdomain/zero/1.0/')
def developersNode = node.appendNode('developers')
def bcorne = developersNode.appendNode('developer')
bcorne.appendNode('id','bcorne')
bcorne.appendNode('name','Benoit Corne')
bcorne.appendNode('email','[email protected]')
def scm = node.appendNode('scm')
scm.appendNode('connection','scm:git:[email protected]:Ullink/simple-slack-api.git')
scm.appendNode('developerConnection','scm:git:[email protected]:Ullink/simple-slack-api.git')
scm.appendNode('url','[email protected]:Ullink/simple-slack-api.git')
}
}
}
}

developers {
developer {
id 'bcorne'
name 'Benoit Corne'
email '[email protected]'
}
bintray {
user = bintray_user //this usually comes from gradle.properties file in ~/.gradle
key = bintray_api_key //this usually comes from gradle.properties file in ~/.gradle

publications = ['mavenJava'] //When uploading Maven-based publication files
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
name = 'com.ullink.slack:simpleslackapi'
desc = 'simple slack API package!'
websiteUrl = 'https://github.com/Ullink/simple-slack-api'
issueTrackerUrl = 'https://github.com/Ullink/simple-slack-api/issues'
vcsUrl = 'https://github.com/Ullink/simple-slack-api.git'
licenses = ['Apache-2.0']
labels = ['slack']
publicDownloadNumbers = true
version {
name = project.version //Bintray logical version name
desc = ''
mavenCentralSync {
sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
user = ossrhUsername //OSS user token
password = ossrhPassword //OSS user password
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
}
}
}
}
}
}
}

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 eb60c12

Please sign in to comment.