110 lines
2.9 KiB
Groovy
110 lines
2.9 KiB
Groovy
buildscript {
|
|
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',
|
|
name : 'chronicle-flux',
|
|
organization: 'streamly',
|
|
userName : System.getenv('BINTRAY_USER'),
|
|
apiToken : System.getenv('BINTRAY_KEY')
|
|
]
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
|
|
}
|
|
}
|
|
|
|
group POM.groupId
|
|
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'jacoco'
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
def chronicleVersion = '5.16.8'
|
|
def reactorVersion = '3.1.7.RELEASE'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
if (DEPLOYMENT) {
|
|
apply plugin: 'maven'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
println 'Applying deployment scripts'
|
|
apply from: './scripts/bintray-deploy.gradle'
|
|
}
|
|
|
|
dependencies {
|
|
compile "ch.streamly:streamly-domain:1.0.2"
|
|
compile "org.slf4j:slf4j-api:1.7.25"
|
|
compile "io.projectreactor:reactor-core:$reactorVersion"
|
|
compile "net.openhft:chronicle-queue:$chronicleVersion"
|
|
|
|
testCompile "com.google.guava:guava:26.0-jre"
|
|
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"
|
|
testCompile "commons-io:commons-io:2.6"
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled true
|
|
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
|
|
html.enabled true
|
|
csv.enabled false
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
|
|
|