From 7832b3954cbc72373633a3fac12d1e1cf83fc441 Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Thu, 30 Nov 2023 10:05:53 -0600 Subject: [PATCH] Correctly format code automatically for sources >= 17 Includes support for formatting MR-JAR layer directories automatically. --- pom.xml | 261 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 260 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0d0073f..b54e2d0 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ 3.2.2 2 2.22.0 - 1.8.0 + 1.9.0 0.8.11 1.0.0 3.2.0 @@ -335,6 +335,7 @@ + format-sources process-sources format @@ -463,6 +464,37 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports + + sort + + + 11 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources + process-sources + + format + + + 11 + + + + @@ -493,6 +525,37 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports + + sort + + + 17 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources + process-sources + + format + + + 17 + + + + @@ -523,6 +586,37 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports + + sort + + + 21 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources + process-sources + + format + + + 21 + + + + @@ -637,6 +731,39 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports-java17 + + sort + + + ${project.basedir}/src/main/java17 + 17 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources-java17 + process-sources + + format + + + ${project.basedir}/src/main/java17 + 17 + + + + @@ -752,6 +879,39 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports-java18 + + sort + + + ${project.basedir}/src/main/java18 + 18 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources-java18 + process-sources + + format + + + ${project.basedir}/src/main/java18 + 18 + + + + @@ -869,6 +1029,39 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports-java19 + + sort + + + ${project.basedir}/src/main/java19 + 19 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources-java19 + process-sources + + format + + + ${project.basedir}/src/main/java19 + 19 + + + + @@ -988,6 +1181,39 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports-java20 + + sort + + + ${project.basedir}/src/main/java20 + 20 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources-java20 + process-sources + + format + + + ${project.basedir}/src/main/java20 + 20 + + + + @@ -1109,6 +1335,39 @@ + + net.revelc.code + impsort-maven-plugin + + + sort-imports-java21 + + sort + + + ${project.basedir}/src/main/java21 + 21 + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-sources-java21 + process-sources + + format + + + ${project.basedir}/src/main/java21 + 21 + + + +