Skip to content

Commit

Permalink
setting version to final 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bcorne committed Mar 9, 2016
1 parent 14bec00 commit 295fb9a
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions sources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ buildscript {
}
}

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'signing'
Expand All @@ -17,48 +18,9 @@ apply plugin: 'maven-publish'

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


publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
asNode().appendNode('description', 'A simple API to build bot running on Slack')
asNode().children().last() + pomConfig
}
}
}
}


task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.runtime
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocJar, sourcesJar
}

signing {
required false
sign configurations.archives
}

def pomConfig = {
name 'Simple Slack API'
url 'https://github.com/Ullink/simple-slack-api'
Expand Down Expand Up @@ -131,6 +93,46 @@ def pomConfig = {
}
}


publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
asNode().appendNode('description', 'A simple API to build bot running on Slack')
asNode().children().last() + pomConfig
}
}
}
}


task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.runtime
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocJar, sourcesJar
}

signing {
required false
sign configurations.archives
}

bintray {
if (this.hasProperty('bintray_user')) {
user = bintray_user //this usually comes from gradle.properties file in ~/.gradle
Expand Down

0 comments on commit 295fb9a

Please sign in to comment.