mirror of https://github.com/reiseburo/whoas
Update gradle to build this project as Java only
Since Spock and Groovy make writing tests MUCH easier, so we'll keep the groovy test dependency Fixes #25
This commit is contained in:
parent
fc9917966a
commit
312679b79e
26
build.gradle
26
build.gradle
|
@ -5,12 +5,11 @@ plugins {
|
|||
}
|
||||
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'groovy'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
|
||||
group = 'com.github.lookout'
|
||||
version = '0.2.0'
|
||||
version = '0.3.0'
|
||||
description = 'A server-side webhook publishing library'
|
||||
|
||||
sourceCompatibility = '1.6'
|
||||
|
@ -21,14 +20,12 @@ targetCompatibility = '1.6'
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// DEPENDENCY MANAGEMENT
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
dependencies {
|
||||
compile 'org.codehaus.groovy:groovy-all:2.4.0+'
|
||||
compile 'org.glassfish.jersey.core:jersey-client:2.6+'
|
||||
|
||||
/* Needed for serializing requests to JSON and back */
|
||||
|
@ -37,13 +34,15 @@ dependencies {
|
|||
compile 'joda-time:joda-time:2.6+'
|
||||
/* Needed for redis client */
|
||||
compile 'redis.clients:jedis:2.6+'
|
||||
testCompile 'com.fiftyonred:mock-jedis:0.4.0'
|
||||
/* Needed for logback */
|
||||
compile 'org.slf4j:slf4j-api:1.7.10'
|
||||
compile 'ch.qos.logback:logback-classic:1.1.2'
|
||||
|
||||
testCompile 'org.codehaus.groovy:groovy-all:2.4.0+'
|
||||
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
|
||||
testCompile 'cglib:cglib-nodep:2.2.+'
|
||||
/* Redis-support testing code */
|
||||
testCompile 'com.fiftyonred:mock-jedis:0.4.0'
|
||||
|
||||
[
|
||||
'dropwizard-core',
|
||||
|
@ -83,12 +82,12 @@ asciidoctor {
|
|||
}
|
||||
check.dependsOn asciidoctor
|
||||
|
||||
groovydoc {
|
||||
destinationDir file('docs/html5/groovydoc')
|
||||
javadoc {
|
||||
destinationDir file('docs/html5/javadoc')
|
||||
shouldRunAfter test
|
||||
}
|
||||
|
||||
check.dependsOn groovydoc
|
||||
check.dependsOn javadoc
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -101,14 +100,15 @@ task sourcesJar(type: Jar, dependsOn: classes) {
|
|||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
task groovydocJar(type: Jar, dependsOn: groovydoc) {
|
||||
classifier = 'groovydoc'
|
||||
from groovydoc.destinationDir
|
||||
task javadocJar(type: Jar) {
|
||||
dependsOn javadoc
|
||||
classifier = 'javadoc'
|
||||
from javadoc.destinationDir
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives groovydocJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
task publishDocs(type: Exec) {
|
||||
|
|
Loading…
Reference in New Issue