switch to gradle

gradle files added
gradle: plugins added
build: files added
.travis.yml: gradle cache stored
distribution: tar and zip file stuff added
broker/build.gradle: osgi plugin added
build: bintray upload added
pom: files removed
distribution: assembly.xml removed
gradle: test ouput added to sub builds
.editorconfig: gradle files added
build: wrapper task added
osgi: added to h2_ and mapdb_storage
gradle: files cleaned
build.gradle: jars used for tar/zip
This commit is contained in:
Andreas Mager
2017-08-24 17:50:59 +02:00
committed by Andreas Mager
parent 7c4f902dbd
commit e8b105fa90
31 changed files with 694 additions and 1311 deletions
+9
View File
@@ -0,0 +1,9 @@
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
+19
View File
@@ -0,0 +1,19 @@
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
checkstyle {
configProperties.checkstyleConfigDir = "."
configFile = new File(rootDir, 'checkstyle.xml')
ignoreFailures false
toolVersion = '6.7'
}
findbugs {
toolVersion = '3.0.1'
ignoreFailures true
omitVisitors = ['RuntimeExceptionCapture']
}
tasks.withType(FindBugs) {
maxHeapSize = '2g'
}
+62
View File
@@ -0,0 +1,62 @@
test {
def outputReporter = new OutputReporter()
addTestListener(outputReporter)
addTestOutputListener(outputReporter)
}
class OutputReporter implements TestListener, TestOutputListener {
private StringBuilder stdout = new StringBuilder();
private StringBuilder stderr = new StringBuilder();
@Override
void beforeSuite(TestDescriptor suite) {
}
@Override
void afterSuite(TestDescriptor suite, TestResult result) {
}
@Override
void beforeTest(TestDescriptor testDescriptor) {
if (!testDescriptor.isComposite()) {
stdout.setLength(0);
stderr.setLength(0);
}
}
@Override
void afterTest(TestDescriptor testDescriptor, TestResult result) {
if (!testDescriptor.isComposite() && result.getResultType() == TestResult.ResultType.FAILURE) {
if (stdout.length() != 0) {
println ""
println "--- STDOUT ---"
print stdout
println "--- STDOUT ---"
}
if (stderr.length() != 0) {
println ""
println "--- STDERR ---"
println stderr
println "--- STDERR ---"
}
}
}
@Override
void onOutput(TestDescriptor testDescriptor, TestOutputEvent outputEvent) {
if (!testDescriptor.isComposite()) {
def buffer = (outputEvent.getDestination() == TestOutputEvent.Destination.StdOut) ? stdout : stderr;
buffer.append(outputEvent.getMessage());
if (outputEvent.getMessage().contains("LEAK:")) {
println stdout
println stderr
throw new RuntimeException("Netty ResourceLeakDetector");
}
}
}
}
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
#Thu Aug 10 18:13:58 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip