Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,8 @@ class StopWatch {
}
}

/* bintray */
buildscript {
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
apply from: file('gradle/bintray.gradle')
50 changes: 50 additions & 0 deletions gradle/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apply plugin: 'maven-publish'

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

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

artifacts {
archives sourceJar
archives groovydocJar
}

publishing {
publications {
deployment(MavenPublication) {
from components.java

artifact sourceJar
artifact groovydocJar
}
}
}

apply plugin: 'com.jfrog.bintray'

bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : null
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : null
publications = ['deployment']
pkg {
repo = 'maven'
name = 'gexcelapi'
desc = 'GExcelAPI is a thin wrapper library powered by Groovy of Apache POI, not JExcelAPI.'
websiteUrl = 'https://github.com/nobeans/gexcelapi'
issueTrackerUrl = 'https://github.com/nobeans/gexcelapi/issues'
vcsUrl = 'https://github.com/nobeans/gexcelapi.git'
licenses = ['Apache-2.0']
version {
name = "${version}"
vcsTag = "v${version}"
}
}
}

bintrayUpload.dependsOn build
6 changes: 6 additions & 0 deletions gradle/buildscript.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5"
}