From 1a7689cc2531da93d8e74acb551b20578abab3c1 Mon Sep 17 00:00:00 2001 From: Antti Koponen Date: Tue, 28 Jan 2025 17:10:36 +0200 Subject: [PATCH] Include API in sources artifact (#3217) --- main/pom.xml | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/main/pom.xml b/main/pom.xml index df78e1972..bb1183414 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -148,14 +148,58 @@ + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + include-api-sources + install + + add-source + + + + ${project.build.directory}/api-sources + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.8.1 + + + unpack-api-sources + install + + unpack + + + + + net.citizensnpcs + citizensapi + ${project.version} + sources + ${project.build.directory}/api-sources + + + + + + org.apache.maven.plugins maven-source-plugin - 3.2.1 + 3.3.1 attach-sources - package + install jar-no-fork @@ -250,4 +294,4 @@ - \ No newline at end of file +