Skip to content

Commit 12477ef

Browse files
mashraf-222claude
andcommitted
chore: add Maven Central metadata and release profile to runtime pom.xml
Add required metadata for Maven Central publishing: - Project URL, Apache-2.0 license, developer info, SCM URLs - Release profile (-Prelease) with source, javadoc, and GPG signing plugins - Plugins only activate during release builds, no impact on normal development Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5763f19 commit 12477ef

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

codeflash-java-runtime/pom.xml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,29 @@
1212

1313
<name>CodeFlash Java Runtime</name>
1414
<description>Runtime library for CodeFlash Java instrumentation and comparison</description>
15+
<url>https://github.com/codeflash-ai/codeflash</url>
16+
17+
<licenses>
18+
<license>
19+
<name>Apache-2.0</name>
20+
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
21+
<distribution>repo</distribution>
22+
</license>
23+
</licenses>
24+
25+
<developers>
26+
<developer>
27+
<name>Codeflash AI</name>
28+
<organization>Codeflash AI</organization>
29+
<organizationUrl>https://codeflash.ai</organizationUrl>
30+
</developer>
31+
</developers>
32+
33+
<scm>
34+
<connection>scm:git:git://github.com/codeflash-ai/codeflash.git</connection>
35+
<developerConnection>scm:git:ssh://github.com:codeflash-ai/codeflash.git</developerConnection>
36+
<url>https://github.com/codeflash-ai/codeflash</url>
37+
</scm>
1538

1639
<properties>
1740
<maven.compiler.source>11</maven.compiler.source>
@@ -150,4 +173,55 @@
150173
</plugin>
151174
</plugins>
152175
</build>
176+
177+
<!-- Maven Central publishing plugins (activated via -Prelease) -->
178+
<profiles>
179+
<profile>
180+
<id>release</id>
181+
<build>
182+
<plugins>
183+
<plugin>
184+
<groupId>org.apache.maven.plugins</groupId>
185+
<artifactId>maven-source-plugin</artifactId>
186+
<version>3.3.0</version>
187+
<executions>
188+
<execution>
189+
<id>attach-sources</id>
190+
<goals>
191+
<goal>jar-no-fork</goal>
192+
</goals>
193+
</execution>
194+
</executions>
195+
</plugin>
196+
<plugin>
197+
<groupId>org.apache.maven.plugins</groupId>
198+
<artifactId>maven-javadoc-plugin</artifactId>
199+
<version>3.6.3</version>
200+
<executions>
201+
<execution>
202+
<id>attach-javadocs</id>
203+
<goals>
204+
<goal>jar</goal>
205+
</goals>
206+
</execution>
207+
</executions>
208+
</plugin>
209+
<plugin>
210+
<groupId>org.apache.maven.plugins</groupId>
211+
<artifactId>maven-gpg-plugin</artifactId>
212+
<version>3.1.0</version>
213+
<executions>
214+
<execution>
215+
<id>sign-artifacts</id>
216+
<phase>verify</phase>
217+
<goals>
218+
<goal>sign</goal>
219+
</goals>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
</plugins>
224+
</build>
225+
</profile>
226+
</profiles>
153227
</project>

0 commit comments

Comments
 (0)