2018-05-04 16:02:16 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven {
|
|
|
|
url 'http://xbib.org/repository'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2019-02-10 20:39:07 +01:00
|
|
|
classpath "org.xbib.elasticsearch:gradle-plugin-elasticsearch-build:6.3.2.4"
|
2018-05-04 16:02:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'org.xbib.gradle.plugin.elasticsearch.build'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
main
|
|
|
|
tests
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':api')
|
|
|
|
compile "org.xbib:metrics:${project.property('xbib-metrics.version')}"
|
|
|
|
compileOnly "org.apache.logging.log4j:log4j-api:${project.property('log4j.version')}"
|
2019-02-10 20:39:07 +01:00
|
|
|
testCompile "org.xbib.elasticsearch:elasticsearch-test-framework:${project.property('elasticsearch-devkit.version')}"
|
|
|
|
testRuntime "org.xbib.elasticsearch:elasticsearch-test-framework:${project.property('elasticsearch-devkit.version')}"
|
2018-05-04 16:02:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName "${rootProject.name}-common"
|
|
|
|
}
|
|
|
|
|
2019-02-10 20:39:07 +01:00
|
|
|
/*
|
2018-05-04 16:02:16 +02:00
|
|
|
task testJar(type: Jar, dependsOn: testClasses) {
|
|
|
|
baseName = "${project.archivesBaseName}-tests"
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
2019-02-10 20:39:07 +01:00
|
|
|
*/
|
2018-05-04 16:02:16 +02:00
|
|
|
|
|
|
|
artifacts {
|
|
|
|
main jar
|
|
|
|
tests testJar
|
|
|
|
archives sourcesJar, javadocJar
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
enabled = false
|
|
|
|
jvmArgs "-javaagent:" + configurations.alpnagent.asPath
|
|
|
|
systemProperty 'path.home', project.buildDir.absolutePath
|
|
|
|
testLogging {
|
|
|
|
showStandardStreams = true
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
randomizedTest {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
esTest {
|
|
|
|
// test with the jars, not the classes, for security manager
|
2019-02-10 20:39:07 +01:00
|
|
|
// classpath = files(configurations.testRuntime) + configurations.main.artifacts.files + configurations.tests.artifacts.files
|
2018-05-04 16:02:16 +02:00
|
|
|
systemProperty 'tests.security.manager', 'true'
|
|
|
|
}
|
|
|
|
esTest.dependsOn jar, testJar
|
|
|
|
|