Skip to content

Commit 4835424

Browse files
committed
ci: prepare Release Please for 6.0.x-lts branch
The pom.xml file in the branch needs the profile to sign the artifact.
1 parent 87c1e23 commit 4835424

5 files changed

Lines changed: 69 additions & 11 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@ jobs:
1212
java: [8, 11]
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-java@v1
15+
- uses: actions/setup-java@v5
1616
with:
1717
java-version: ${{matrix.java}}
18-
- name: Get current date
19-
id: date
20-
run: echo "date=$(date +'%Y-%m-%d' --utc)" >> "$GITHUB_OUTPUT"
21-
- uses: actions/cache@v2
22-
id: mvn-cache
23-
with:
24-
path: ~/.m2/repository
25-
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.date }}
18+
distribution: 'temurin'
2619
- run: java -version
2720
# The http connection settings avoid Maven's HTTP connection reset in GitHub Actions
2821
# https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"boms/cloud-lts-bom": "6.0.2"
3+
}

boms/cloud-lts-bom/pom.xml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.google.cloud</groupId>
99
<artifactId>gcp-lts-bom</artifactId>
10-
<version>6.0.3-SNAPSHOT</version>
10+
<version>6.0.3-SNAPSHOT</version><!-- {x-version-update:gcp-lts-bom:current} -->
1111
<packaging>pom</packaging>
1212

1313
<name>Google Cloud Long Term Support BOM</name>
@@ -500,5 +500,51 @@
500500
</dependency>
501501
</dependencies>
502502
</dependencyManagement>
503-
503+
<profiles>
504+
<profile>
505+
<id>release</id>
506+
<activation>
507+
<property>
508+
<name>performRelease</name>
509+
</property>
510+
</activation>
511+
<build>
512+
<plugins>
513+
<plugin>
514+
<groupId>org.apache.maven.plugins</groupId>
515+
<artifactId>maven-gpg-plugin</artifactId>
516+
<version>3.2.7</version>
517+
<executions>
518+
<execution>
519+
<id>sign-artifacts</id>
520+
<phase>verify</phase>
521+
<goals>
522+
<goal>sign</goal>
523+
</goals>
524+
<configuration>
525+
<gpgArguments>
526+
<arg>--pinentry-mode</arg>
527+
<arg>loopback</arg>
528+
</gpgArguments>
529+
</configuration>
530+
</execution>
531+
</executions>
532+
</plugin>
533+
<plugin>
534+
<groupId>org.apache.maven.plugins</groupId>
535+
<artifactId>maven-source-plugin</artifactId>
536+
<version>3.3.1</version>
537+
<executions>
538+
<execution>
539+
<id>attach-sources</id>
540+
<goals>
541+
<goal>jar-no-fork</goal>
542+
</goals>
543+
</execution>
544+
</executions>
545+
</plugin>
546+
</plugins>
547+
</build>
548+
</profile>
549+
</profiles>
504550
</project>

boms/cloud-lts-bom/versions.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Format:
2+
# module:released-version:current-version
3+
4+
gcp-lts-bom:6.0.2:6.0.3-SNAPSHOT

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"separate-pull-requests": true,
4+
"include-component-in-tag": true,
5+
"packages": {
6+
"boms/cloud-lts-bom": {
7+
"component": "gcp-lts-bom",
8+
"release-type": "java-yoshi"
9+
}
10+
},
11+
"bootstrap-sha": "6b9240114536a03b72929d5fade85599fbdbbdd0"
12+
}

0 commit comments

Comments
 (0)