recover deleted JMH tests

update gradle and other third-party libs
This commit is contained in:
2019-08-22 19:57:27 +02:00
parent 506fb7b698
commit 0311ecd83c
6 changed files with 164 additions and 15 deletions

View File

@@ -1,8 +1,20 @@
plugins {
// usage: gradle dependencyUpdates -Drevision=release
id "com.github.ben-manes.versions" version "0.20.0"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath "me.champeau.gradle:jmh-gradle-plugin:0.5.0-rc-2"
}
}
plugins {
// usage: gradle dependencyUpdates -Drevision=release
id "com.github.ben-manes.versions" version "0.22.0"
}
apply plugin: 'java'
apply plugin: 'eclipse'
@@ -14,6 +26,7 @@ subprojects {
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'me.champeau.gradle.jmh'
// java compatibility version
sourceCompatibility = 10
@@ -31,9 +44,9 @@ subprojects {
uploadArchives {
repositories {
mavenDeployer {
if (!project.hasProperty('mavenDeployRepo')){
throw new IllegalStateException("Set the property 'mavenDeployRepo' to the repository URL. A good place is ~/.gradle/gradle.properties")
}
if (!project.hasProperty('mavenDeployRepo')){
throw new IllegalStateException("Set the property 'mavenDeployRepo' to the repository URL. A good place is ~/.gradle/gradle.properties")
}
repository(url: "${mavenDeployRepo}")
println "publishing to: ${mavenDeployRepo}"
}
@@ -52,16 +65,23 @@ subprojects {
// dependencies that all sub-projects have
dependencies {
testCompile 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
testRuntime 'org.junit.platform:junit-platform-launcher:1.4.2' // needed by eclipse
testCompile 'org.junit.jupiter:junit-jupiter-api:5.5.1'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
testRuntime 'org.junit.platform:junit-platform-launcher:1.5.1' // needed by eclipse
}
test {
useJUnitPlatform()
}
jmh {
//jvmArgsAppend = ""
resultFormat = "JSON"
//include = ['.*Union.*'] // include pattern (regular expression) for benchmarks to be executed
//exclude = ['some regular expression'] // exclude pattern (regular expression) for benchmarks to be executed
}
}
wrapper() {
gradleVersion = '5.4.1'
gradleVersion = '5.6'
}