Add a simple gradle file with some basic project configuratio

This commit is contained in:
R. Tyler Croy 2014-12-30 17:40:04 -08:00
parent c3e9110930
commit ad77cbaa38
2 changed files with 83 additions and 0 deletions

80
build.gradle Normal file
View File

@ -0,0 +1,80 @@
plugins {
id 'com.jfrog.bintray' version '1.0'
id 'org.asciidoctor.gradle.asciidoctor' version '1.5.1'
id 'com.github.johnrengelman.shadow' version '1.2.0'
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
group = 'com.github.lookout'
version = '0.1.0'
description = 'A server-side webhook publishing library'
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'org.glassfish.jersey.core:jersey-client:2.+'
}
test {
testLogging {
/* we want more test failure information, see:
* <http://mrhaki.blogspot.com/2013/05/gradle-goodness-show-more-information.html>
*/
exceptionFormat = 'full'
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
////////////////////////////////////////////////////////////////////////////////
// DOCUMENTATION TASKS
////////////////////////////////////////////////////////////////////////////////
asciidoctor {
sourceDir 'src/asciidoc'
outputDir 'docs'
attributes 'toc': 'right',
'source-highlighter': 'coderay',
'toc-title': 'Table of Contents'
shouldRunAfter test
}
check.dependsOn asciidoctor
groovydoc {
destinationDir file('docs/html5/groovydoc')
shouldRunAfter test
}
check.dependsOn groovydoc
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// PUBLISHING TASKS
////////////////////////////////////////////////////////////////////////////////
bintray {
user = project.bintrayUser
key = project.bintrayKey
publish = true
dryRun = false
configurations = ['archives']
pkg {
userOrg = 'lookout'
repo = 'systems'
name = 'whoas'
labels = []
version {
name = project.version
vcsTag = "v${project.version}"
desc = project.description
}
}
}
bintrayUpload.dependsOn assemble
////////////////////////////////////////////////////////////////////////////////

3
gradle.properties Normal file
View File

@ -0,0 +1,3 @@
org.gradle.daemon=true
bintrayUser=
bintrayKey=