-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'snowdrop:main' into dockeropts
- Loading branch information
Showing
8 changed files
with
133 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
release: | ||
current-version: 0.0.9 | ||
next-version: 0.0.10-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Java Buildpack Client Release | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
paths: | ||
- '.github/project.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: release | ||
if: ${{github.event.pull_request.merged == true}} | ||
|
||
steps: | ||
- uses: radcortez/project-metadata-action@main | ||
name: Retrieve project metadata | ||
id: metadata | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
metadata-file-path: '.github/project.yml' | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: 'maven' | ||
server-id: oss-sonatype-staging | ||
server-username: OSS_SONATYPE_USERNAME | ||
server-password: OSS_SONATYPE_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Configure Git author | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Set release version in the samples and readme | ||
run: | | ||
find ./samples/ -iwholename "*/pack.java" | while read f; do | ||
sed -i "s/dev.snowdrop:buildpack-client:.*/dev.snowdrop:buildpack-client:${{steps.metadata.outputs.current-version}}\}/g" $f | ||
git add $f | ||
done | ||
sed -i "s/dev.snowdrop:buildpack-client:.*/dev.snowdrop:buildpack-client:${{steps.metadata.outputs.current-version}}\}/g" README.md | ||
sed -i "s/<version>.*<\/version>/<version>${{steps.metadata.outputs.current-version}}<\/version>/g" README.md | ||
git add README.md | ||
git commit -m "chore: set release version: ${{steps.metadata.outputs.current-version}} in samples and README.md" | ||
- name: Maven release ${{steps.metadata.outputs.current-version}} | ||
run: | | ||
mvn -B release:prepare -Prelease -Darguments="-DskipTests" -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} | ||
mvn -B release:perform -Darguments="-DperformRelease -DskipTests" -DperformRelease -Prelease | ||
env: | ||
OSS_SONATYPE_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} | ||
OSS_SONATYPE_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
- name: Set dev version in the samples and readme | ||
run: | | ||
find ./samples/ -iwholename "*/pack.java" | while read f; do | ||
sed -i "s/dev.snowdrop:buildpack-client:.*/dev.snowdrop:buildpack-client:${{steps.metadata.outputs.next-version}}\}/g" $f | ||
git add $f | ||
done | ||
git commit -m "chore: set dev version: ${{steps.metadata.outputs.next-version}} in samples and README.md" | ||
- name: Push changes to ${{github.base_ref}} branch | ||
run: | | ||
git push | ||
git push origin ${{steps.metadata.outputs.current-version}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<modelVersion>4.0.0</modelVersion> | ||
<groupId>dev.snowdrop</groupId> | ||
<artifactId>buildpack-client-project</artifactId> | ||
<version>0.0.7-SNAPSHOT</version> | ||
<version>0.0.10-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>Snowdrop :: Java Buildpack Client :: Project</name> | ||
<description>A Buildpack client implementation written in Java</description> | ||
|
||
<url>https://snowdrop.dev</url> | ||
<url>http://github.com/snowdrop/java-buildpack-client</url> | ||
<inceptionYear>2020</inceptionYear> | ||
|
||
<organization> | ||
|
@@ -34,8 +34,8 @@ | |
</developers> | ||
|
||
<scm> | ||
<connection>scm:git:git@github.com:snowdrop/java-buildpack-client.git</connection> | ||
<developerConnection>scm:git:[email protected]:snowdrop/java-buildpack-client.git</developerConnection> | ||
<connection>scm:git:git://github.com/snowdrop/java-buildpack-client.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]:snowdrop/java-buildpack-client.git</developerConnection> | ||
<url>http://github.com/snowdrop/java-buildpack-client</url> | ||
<tag>${project.version}</tag> | ||
</scm> | ||
|
@@ -46,6 +46,10 @@ | |
<name>Sonatype Staging Repository</name> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>oss-sonatype-snapshots</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
|
@@ -63,15 +67,17 @@ | |
<version.mockito>3.12.4</version.mockito> | ||
|
||
<!-- Maven Plugin Versions --> | ||
<version.maven-compiler-plugin>3.8.1</version.maven-compiler-plugin> | ||
<version.maven-surefire-plugin>2.22.0</version.maven-surefire-plugin> | ||
<version.maven-failsafe-plugin>2.22.0</version.maven-failsafe-plugin> | ||
<version.maven-compiler-plugin>3.13.0</version.maven-compiler-plugin> | ||
<version.maven-surefire-plugin>3.3.0</version.maven-surefire-plugin> | ||
<version.maven-failsafe-plugin>3.3.0</version.maven-failsafe-plugin> | ||
|
||
<!-- Release Plugins --> | ||
<version.maven-gpg-plugin>1.6</version.maven-gpg-plugin> | ||
<version.maven-release-plugin>3.1.0</version.maven-release-plugin> | ||
<version.maven-gpg-plugin>3.2.4</version.maven-gpg-plugin> | ||
<version.maven-enforcer-plugin>1.3.1</version.maven-enforcer-plugin> | ||
<version.maven-javadoc-plugin>2.10.3</version.maven-javadoc-plugin> | ||
<version.maven-source-plugin>2.4</version.maven-source-plugin> | ||
<version.maven-javadoc-plugin>3.7.0</version.maven-javadoc-plugin> | ||
<version.maven-source-plugin>3.3.1</version.maven-source-plugin> | ||
<version.nexus-staging-maven-plugin>1.6.13</version.nexus-staging-maven-plugin> | ||
</properties> | ||
|
||
<modules> | ||
|
@@ -212,6 +218,13 @@ | |
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<configuration> | ||
<!-- This is necessary for gpg to not try to use the pinentry programs --> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
@@ -272,6 +285,31 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>${version.maven-release-plugin}</version> | ||
<configuration> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<tagNameFormat>@{project.version}</tagNameFormat> | ||
<pushChanges>false</pushChanges> | ||
<localCheckout>true</localCheckout> | ||
<remoteTagging>false</remoteTagging> | ||
<arguments>-DskipTests=true</arguments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>${version.nexus-staging-maven-plugin}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>oss-sonatype-staging</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters