From 6532cd3acb2a70767ccd28fb88da052b3d965049 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Mon, 27 Jan 2025 17:37:14 +0100 Subject: [PATCH] Simplify regex since module descriptors are handled separately --- .../src/main/kotlin/junitbuild.spotless-conventions.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts b/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts index 47f0478e1bd8..12a1d64470b0 100644 --- a/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts +++ b/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts @@ -27,7 +27,7 @@ spotless { val javaFormatterConfigFile = configDir.file("junit-eclipse-formatter-settings.xml") java { - licenseHeaderFile(license.headerFile, "(package|import|open|module) ") + licenseHeaderFile(license.headerFile, "(package|import) ") importOrderFile(importOrderConfigFile) val fullVersion = requiredVersionFromLibs("eclipse") val majorMinorVersion = "([0-9]+\\.[0-9]+).*".toRegex().matchEntire(fullVersion)!!.let { it.groups[1]!!.value }