From 4b01ce4ed9898284e8639ca650349b9b9b56a6cd Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 5 Jan 2024 20:25:43 -0800 Subject: [PATCH] Build with Automatic-Module-Name for compatibility with the Java module system. --- build.gradle | 8 ++++++++ pom.xml | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/build.gradle b/build.gradle index 87384835f..771048f7c 100644 --- a/build.gradle +++ b/build.gradle @@ -141,6 +141,14 @@ javadoc { options.addBooleanOption("Xdoclint:none", true) } +jar { + manifest { + attributes ( + "Automatic-Module-Name": "net.sf.jsqlparser" + ) + } +} + tasks.register('xmldoc', Javadoc) { def outFile = reporting.file( version.endsWith("-SNAPSHOT") diff --git a/pom.xml b/pom.xml index 166924e06..f0b2c9d8b 100644 --- a/pom.xml +++ b/pom.xml @@ -328,6 +328,17 @@ + + org.apache.maven.plugins + maven-jar-plugin + + + + net.sf.jsqlparser + + + + maven-site-plugin 3.12.1