From be4e7d20874d6576ac5a4fd516c815b2548181f7 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 4 Jan 2024 03:54:17 +0100 Subject: [PATCH] JMH: Improvements to `jmh.gradle` (#9390) Cleanup jmh.gradle and upgrade JMH Version --- jmh.gradle | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jmh.gradle b/jmh.gradle index 1a28ee0083e1..076899239430 100644 --- a/jmh.gradle +++ b/jmh.gradle @@ -18,12 +18,12 @@ */ if (jdkVersion != '8' && jdkVersion != '11' && jdkVersion != '17') { - throw new GradleException("The JMH benchamrks must be run with JDK 8 or JDK 11 or JDK 17") + throw new GradleException("The JMH benchmarks must be run with JDK 8 or JDK 11 or JDK 17") } def sparkVersions = (System.getProperty("sparkVersions") != null ? System.getProperty("sparkVersions") : System.getProperty("defaultSparkVersions")).split(",") def scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion") -def jmhProjects = [project(":iceberg-core")] +def jmhProjects = [project(":iceberg-core"), project(":iceberg-data")] if (sparkVersions.contains("3.3")) { jmhProjects.add(project(":iceberg-spark:iceberg-spark-3.3_${scalaVersion}")) @@ -40,8 +40,6 @@ if (sparkVersions.contains("3.5")) { jmhProjects.add(project(":iceberg-spark:iceberg-spark-extensions-3.5_${scalaVersion}")) } -jmhProjects.add(project(":iceberg-data")) - configure(jmhProjects) { apply plugin: 'me.champeau.jmh' apply plugin: 'io.morethan.jmhreport' @@ -50,7 +48,7 @@ configure(jmhProjects) { mkdir(file(jmhReportDir)) jmh { - jmhVersion = '1.32' + jmhVersion = '1.37' failOnError = true forceGC = true includeTests = true