зеркало из https://github.com/microsoft/gctoolkit.git
prep to pub on maven central
This commit is contained in:
Родитель
dc7f2c6f57
Коммит
ca43cad534
|
@ -9,10 +9,6 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout project
|
||||
uses: actions/checkout@v2
|
||||
|
@ -24,23 +20,23 @@ jobs:
|
|||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
server-id: github
|
||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||
server-id: central
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_CENTRAL_TOKEN
|
||||
gpg-private-key: ${{ secrets.GPG_PRIVATEKEY }}
|
||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||||
|
||||
- name: Configure Git user
|
||||
run: |
|
||||
git config user.email "actions@github.com"
|
||||
git config user.name "GitHub Actions"
|
||||
|
||||
- name: Prepare the release
|
||||
run: ./mvnw -B release:prepare -DpushChanges=false --settings $GITHUB_WORKSPACE/settings.xml
|
||||
- name: Release
|
||||
run: ./mvnw -B release:prepare release:perform -Prelease
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Perform the release
|
||||
run: ./mvnw -B release:perform -DlocalCheckout=true -Darguments="-DskipTests -Dmaven.javadoc.skip=true" --settings $GITHUB_WORKSPACE/settings.xml
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
MAVEN_USERNAME: ${{ secrets.SONATYPE_NAME }}
|
||||
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
|
||||
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
- name: Bump pom version
|
||||
run : git push
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
<parent>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<artifactId>gctoolkit-core</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>api</artifactId>
|
||||
<artifactId>gctoolkit-api</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
|
||||
<parent>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<artifactId>gctoolkit-core</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>parser</artifactId>
|
||||
<artifactId>gctoolkit-parser</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<artifactId>gctoolkit-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<artifactId>gctoolkit-core</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>api</module>
|
||||
|
|
|
@ -3,24 +3,23 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<artifactId>core</artifactId>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>gctoolkit-core</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>vertx</artifactId>
|
||||
<artifactId>gctoolkit-vertx</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<artifactId>gctoolkit-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>parser</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<artifactId>gctoolkit-parser</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.vertx</groupId>
|
||||
|
|
85
pom.xml
85
pom.xml
|
@ -44,6 +44,8 @@
|
|||
<url>https://github.com/microsoft/gctoolkit/issues</url>
|
||||
</issueManagement>
|
||||
|
||||
<!--
|
||||
todo: remove when pub'ed to maven:central repository>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
|
@ -57,12 +59,21 @@
|
|||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
-->
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<!-- todo: remove when pub'ed to maven:central repository>
|
||||
<id>github</id>
|
||||
<name>GC Toolkit packages</name>
|
||||
<url>https://maven.pkg.github.com/microsoft/gctoolkit</url>
|
||||
</repository -->
|
||||
<snapshotRepository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
</snapshotRepository>
|
||||
<repository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
|
@ -333,6 +344,27 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.2.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.sonatype.plugins</groupId>
|
||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||
<version>1.6.8</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<serverId>ossrh</serverId>
|
||||
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
||||
<autoReleaseAfterClose>false</autoReleaseAfterClose>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
|
@ -450,5 +482,56 @@
|
|||
<skipUnpack>false</skipUnpack>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<!-- Only active when you add -Prelease to the build-->
|
||||
<id>release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
<phase>verify</phase>
|
||||
<configuration>
|
||||
<gpgArguments>
|
||||
<arg>--pinentry-mode</arg>
|
||||
<arg>loopback</arg>
|
||||
</gpgArguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
|
@ -6,10 +6,9 @@
|
|||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>gctoolkit</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>sample</artifactId>
|
||||
<artifactId>gctoolkit-sample</artifactId>
|
||||
|
||||
<properties>
|
||||
<gcLogFile>../gclogs/preunified/cms/defnew/details/defnew.log</gcLogFile>
|
||||
|
@ -18,13 +17,13 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<artifactId>gctoolkit-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.gctoolkit</groupId>
|
||||
<artifactId>vertx</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<artifactId>gctoolkit-vertx</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче