Skip to content

Commit

Permalink
Move release elements from oss-parent to local project
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Apr 8, 2023
1 parent 6ecaaea commit 3151577
Showing 1 changed file with 128 additions and 76 deletions.
204 changes: 128 additions & 76 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>

<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-inject</artifactId>
<version>0.9.0-SNAPSHOT</version>
Expand Down Expand Up @@ -77,11 +71,39 @@
<url>https://ci.eclipse.org/sisu/job/sisu.inject/</url>
</ciManagement>

<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<properties>
<maven.compiler.release>8</maven.compiler.release>
<!-- Set to same version as release target for consistency -->
<maven.compiler.source>1.${maven.compiler.release}</maven.compiler.source>
<maven.compiler.target>1.${maven.compiler.release}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<mavenBuildVersion>3.6.3</mavenBuildVersion>
<javaBuildVersion>11</javaBuildVersion>
Expand All @@ -92,8 +114,42 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
<excludes>
<!-- Used in tests only -->
<exclude>org.junit.jupiter:junit-jupiter-api</exclude>
<exclude>org.junit.platform:junit-platform-commons</exclude>
<exclude>org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude>
</excludes>
</enforceBytecodeVersion>
<requireMavenVersion>
<version>${mavenBuildVersion}</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${javaBuildVersion}</version>
</requireJavaVersion>
</rules>
</configuration>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -193,23 +249,34 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<dryRun>true</dryRun> <!-- releases are made using the prepare/perform_milestone.sh scripts -->
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>-Psonatype-oss-release</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -222,11 +289,47 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
<detectOfflineLinks>false</detectOfflineLinks>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<useAgent>true</useAgent>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<serverId>sonatype-nexus-staging</serverId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.2</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
Expand All @@ -235,59 +338,11 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<!-- Must have it here as pluginMgmt would NOT override since parent POM defined it here as well -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
<excludes>
<!-- Used in tests only -->
<exclude>org.junit.jupiter:junit-jupiter-api</exclude>
<exclude>org.junit.platform:junit-platform-commons</exclude>
<exclude>org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude>
</excludes>
</enforceBytecodeVersion>
<requireMavenVersion>
<version>${mavenBuildVersion}</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${javaBuildVersion}</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand All @@ -297,7 +352,6 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.2</version>
</plugin>
</plugins>
</reporting>
Expand Down Expand Up @@ -336,27 +390,25 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<useAgent>true</useAgent>
</configuration>
</plugin>
<plugin>
<extensions>true</extensions>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<serverId>sonatype-nexus-staging</serverId>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 3151577

Please sign in to comment.