chronicle-flux/build.gradle

108 lines
2.8 KiB
Groovy
Raw Permalink Normal View History

2018-08-11 20:06:07 +02:00
buildscript {
2018-08-20 11:18:04 +02:00
project.ext.DEPLOYMENT = System.getProperty('deployment') ?: false
project.ext.VCS_TAG = System.getProperty('TRAVIS_TAG') ?: System.getenv('TRAVIS_TAG')
project.ext.POM = [
groupId : 'ch.streamly',
artifactId : 'chronicle-flux',
description: 'A reactive driver for Chronicle-Queue.',
developers : [
[
id : 'mgabriel',
name : 'Mathieu Gabriel',
email: 'dev@streamly.ch'
]
]]
project.ext.INFO = [
repo : 'https://github.com/matgabriel/chronicle-flux.git',
url : 'https://github.com/matgabriel/chronicle-flux',
github : 'https://github.com/matgabriel/chronicle-flux',
githubIssues: 'https://github.com/matgabriel/chronicle-flux/issues'
]
project.ext.BINTRAY = [
repo : 'streamly-repo',
2018-08-20 11:38:51 +02:00
name : 'chronicle-flux',
2018-08-20 11:18:04 +02:00
organization: 'streamly',
userName : System.getenv('BINTRAY_USER'),
2018-08-20 12:07:29 +02:00
apiToken : System.getenv('BINTRAY_KEY')
2018-08-20 11:18:04 +02:00
]
2018-08-11 20:06:07 +02:00
repositories {
mavenCentral()
jcenter()
}
2018-08-20 11:30:33 +02:00
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
2018-08-11 20:06:07 +02:00
}
2018-08-20 11:18:04 +02:00
group POM.groupId
2018-08-11 20:06:07 +02:00
2018-08-12 21:36:25 +02:00
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
2018-08-15 13:59:40 +02:00
apply plugin: 'jacoco'
2018-08-12 21:36:25 +02:00
2018-08-20 11:18:04 +02:00
sourceCompatibility = JavaVersion.VERSION_1_8
2018-08-12 21:36:25 +02:00
2018-08-15 19:17:46 +02:00
def chronicleVersion = '5.16.8'
2018-08-11 20:06:07 +02:00
def reactorVersion = '3.1.7.RELEASE'
2018-08-12 21:36:25 +02:00
repositories {
mavenCentral()
}
2018-08-20 11:18:04 +02:00
if (DEPLOYMENT) {
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
println 'Applying deployment scripts'
apply from: './scripts/bintray-deploy.gradle'
}
2018-08-11 20:06:07 +02:00
dependencies {
2018-08-12 21:36:25 +02:00
compile "org.slf4j:slf4j-api:1.7.25"
2018-08-11 20:06:07 +02:00
compile "io.projectreactor:reactor-core:$reactorVersion"
compile "net.openhft:chronicle-queue:$chronicleVersion"
2018-08-15 07:31:44 +02:00
2018-08-13 17:31:45 +02:00
testCompile "com.google.guava:guava:26.0-jre"
2018-08-15 07:31:44 +02:00
testCompile "io.projectreactor:reactor-test:$reactorVersion"
testCompile "org.junit.jupiter:junit-jupiter-api:5.2.0"
testCompile "org.junit.jupiter:junit-jupiter-engine:5.2.0"
testCompile "org.junit.platform:junit-platform-launcher:1.2.0"
2018-08-15 11:32:59 +02:00
testCompile "commons-io:commons-io:2.6"
2018-08-15 07:31:44 +02:00
}
test {
useJUnitPlatform()
2018-08-11 20:06:07 +02:00
}
2018-08-15 13:59:40 +02:00
jacocoTestReport {
reports {
xml.enabled true
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
html.enabled true
csv.enabled false
}
}
2018-08-11 20:06:07 +02:00
2018-08-20 11:18:04 +02:00
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
2018-08-11 20:06:07 +02:00