File tree Expand file tree Collapse file tree 6 files changed +49
-17
lines changed
spring-cloud-dataflow-apps-plugin
spring-cloud-dataflow-apps-docs-plugin
spring-cloud-dataflow-apps-generator-plugin
spring-cloud-dataflow-apps-metadata-plugin Expand file tree Collapse file tree 6 files changed +49
-17
lines changed Original file line number Diff line number Diff line change 55
66env :
77 MAVEN_THREADS : ' -T 0.5C'
8+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
9+ MAVEN_GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
810
911jobs :
1012 build_deploy_release :
@@ -55,18 +57,23 @@ jobs:
5557 -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}' \
5658 -B
5759 jfrog rt build-clean
58- jfrog mvn -gs settings.xml -Pstagingrelease,full,deploymentfiles -B clean install -DskipTests
60+ echo "${MAVEN_GPG_PRIVATE_KEY}" > private.asc
61+ gpg --import --batch --no-tty private.asc
62+ jfrog mvn -B -gs settings.xml -Pstagingrelease -B clean install -DskipTests
5963 jfrog rt build-publish
6064 echo spring_cloud_dataflow_apps_plugin_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
65+
6166 - name : Tag Release
62676368 with :
6469 tag-release-branch : apps-plugin/v${{ env.spring_cloud_dataflow_apps_plugin_version }}
6570 tag-release-tag : ${{ env.spring_cloud_dataflow_apps_plugin_version }}
6671 tag-release-tag-prefix : apps-plugin/v
72+
6773 - name : Promote Build
6874 run : |
6975 jfrog rt build-promote $JFROG_CLI_BUILD_NAME $JFROG_CLI_BUILD_NUMBER libs-release-local
76+
7077 - name : Clean cache
7178 run : |
7279 find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr
Original file line number Diff line number Diff line change 2020 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2121 JF_ENV_SPRING : ${{ secrets.JF_ARTIFACTORY_SPRING }}
2222 CENTRAL_TOKEN_USERNAME : ${{ secrets.CENTRAL_TOKEN_USERNAME }}
23- WORKFLOWS_REF : main
2423
2524jobs :
2625 deploy-to-maven-central :
4645 jfrog rt download \
4746 --spec ${{ inputs.releaseSpecFile }} \
4847 --spec-vars "buildname=${{ inputs.buildName }};buildnumber=${{ inputs.buildNumber }}"
49- jarToCheck=$(find central_bundle -name "*.jar" -print -quit)
50- jarToCheck=${jarToCheck#central_bundle}
51- echo jarToCheck=$jarToCheck >> $GITHUB_OUTPUT
5248
5349 - name : Deploy to Maven Central
5450 if : env.CENTRAL_TOKEN_USERNAME
Original file line number Diff line number Diff line change 321321 </repository >
322322 </distributionManagement >
323323 </profile >
324+ <profile >
325+ <id >stagingrelease</id >
326+ <build >
327+ <plugins >
328+ <plugin >
329+ <artifactId >maven-gpg-plugin</artifactId >
330+ <version >3.2.8</version >
331+ <executions >
332+ <execution >
333+ <id >sign-artifacts</id >
334+ <phase >verify</phase >
335+ <goals >
336+ <goal >sign</goal >
337+ </goals >
338+ </execution >
339+ </executions >
340+ <configuration >
341+ <gpgArguments >
342+ <arg >--batch</arg >
343+ <arg >--pinentry-mode=loopback</arg >
344+ </gpgArguments >
345+ </configuration >
346+ </plugin >
347+ </plugins >
348+ </build >
349+ </profile >
324350 <profile >
325351 <id >central</id >
326352 <build >
327353 <plugins >
328354 <plugin >
329355 <artifactId >maven-gpg-plugin</artifactId >
330- <version >1.6 </version >
356+ <version >3.2.8 </version >
331357 <executions >
332358 <execution >
333359 <id >sign-artifacts</id >
Original file line number Diff line number Diff line change 99 <relativePath >..</relativePath >
1010 </parent >
1111 <artifactId >spring-cloud-dataflow-apps-docs-plugin</artifactId >
12+ <name >spring-cloud-dataflow-apps-docs-plugin</name >
1213 <packaging >maven-plugin</packaging >
1314 <dependencies >
1415 <dependency >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<project xmlns =" http://maven.apache.org/POM/4.0.0"
3- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4- <modelVersion >4.0.0</modelVersion >
5- <artifactId >spring-cloud-dataflow-apps-generator-plugin</artifactId >
6- <packaging >maven-plugin</packaging >
7- <name >spring-cloud-dataflow-apps-generator-plugin</name >
8- <parent >
9- <groupId >org.springframework.cloud</groupId >
10- <artifactId >spring-cloud-dataflow-apps-plugin-parent</artifactId >
11- <version >1.1.2-SNAPSHOT</version >
12- <relativePath >..</relativePath >
13- </parent >
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+ <artifactId >spring-cloud-dataflow-apps-generator-plugin</artifactId >
7+ <name >spring-cloud-dataflow-apps-generator-plugin</name >
8+ <packaging >maven-plugin</packaging >
9+ <parent >
10+ <groupId >org.springframework.cloud</groupId >
11+ <artifactId >spring-cloud-dataflow-apps-plugin-parent</artifactId >
12+ <version >1.1.2-SNAPSHOT</version >
13+ <relativePath >..</relativePath >
14+ </parent >
1415 <dependencies >
1516 <dependency >
1617 <groupId >org.apache.maven</groupId >
Original file line number Diff line number Diff line change 22<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 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
33 <modelVersion >4.0.0</modelVersion >
44 <artifactId >spring-cloud-dataflow-apps-metadata-plugin</artifactId >
5+ <name >spring-cloud-dataflow-apps-metadata-plugin</name >
56 <packaging >maven-plugin</packaging >
67 <parent >
78 <groupId >org.springframework.cloud</groupId >
You can’t perform that action at this time.
0 commit comments