diff --git a/build.gradle b/build.gradle index 462ac6bb..2885564b 100644 --- a/build.gradle +++ b/build.gradle @@ -141,6 +141,15 @@ subprojects { srcDir projectDir } } + jmh { + java { + srcDir projectDir + } + } + } + + jmh { + jmhVersion = '1.12' } List createdTasks = [] @@ -214,6 +223,7 @@ subprojects { configure(subprojects - project(':onjava')) { dependencies { compile project(':onjava') + compile 'org.openjdk.jmh:jmh-core:1.12' } } diff --git a/understandingcollections/build.gradle b/understandingcollections/build.gradle index 3f51fbe8..1db84bc1 100644 --- a/understandingcollections/build.gradle +++ b/understandingcollections/build.gradle @@ -2,3 +2,7 @@ dependencies { compile project(':typeinfo') compile project(':collections') } + +jmh { + include = 'understandingcollections.jmhtests.*' +}