Skip to content

Commit a157aaa

Browse files
authored
ci: Release Please file for gcp-lts-bom and dependencies modules (#2420)
* Release Please file for gcp-lts-bom The bootstrap-sha points to 8eb8233. This is the parent commit of "Release 1.5.15-dependencies: Bumping to next version post release (#2408)". LTS BOM 9.0.1 release happened after that. New tag format is "<component>-v<version>". For example "gcp-lts-bom-v9.0.1" and "dependencies-v1.5.15". * Maven profiles for release script Becasue there was an independent step to sign artifaccts in the previous releases using Rapid, the pom.xml files didn't need to have GPG signing configurations. With new release setup, there's no independent step to sign artifacts. We need to use maven-gpg-plugin to sign artifacts.
1 parent a464981 commit a157aaa

File tree

10 files changed

+119
-5
lines changed

10 files changed

+119
-5
lines changed

.github/release-please.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
handleGHRelease: true
2+
manifest: true
3+
releaseType: java-yoshi
4+
branches:
5+
- bumpMinorPreMajor: true
6+
handleGHRelease: true
7+
releaseType: java-lts
8+
branch: 9.0.x-lts
9+
- bumpMinorPreMajor: true
10+
handleGHRelease: true
11+
releaseType: java-lts
12+
branch: 8.0.x-lts
13+

.release-please-manifest.json

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

boms/cloud-lts-bom/pom.xml

Lines changed: 48 additions & 1 deletion
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>10.0.0-SNAPSHOT</version>
10+
<version>9.0.2-SNAPSHOT</version><!-- {x-version-update:gcp-lts-bom:current} -->
1111
<packaging>pom</packaging>
1212

1313
<name>Google Cloud Long Term Support BOM</name>
@@ -546,4 +546,51 @@
546546
</dependencies>
547547
</dependencyManagement>
548548

549+
<profiles>
550+
<profile>
551+
<id>release</id>
552+
<activation>
553+
<property>
554+
<name>performRelease</name>
555+
</property>
556+
</activation>
557+
<build>
558+
<plugins>
559+
<plugin>
560+
<groupId>org.apache.maven.plugins</groupId>
561+
<artifactId>maven-gpg-plugin</artifactId>
562+
<version>3.2.7</version>
563+
<executions>
564+
<execution>
565+
<id>sign-artifacts</id>
566+
<phase>verify</phase>
567+
<goals>
568+
<goal>sign</goal>
569+
</goals>
570+
<configuration>
571+
<gpgArguments>
572+
<arg>--pinentry-mode</arg>
573+
<arg>loopback</arg>
574+
</gpgArguments>
575+
</configuration>
576+
</execution>
577+
</executions>
578+
</plugin>
579+
<plugin>
580+
<groupId>org.apache.maven.plugins</groupId>
581+
<artifactId>maven-source-plugin</artifactId>
582+
<version>3.3.1</version>
583+
<executions>
584+
<execution>
585+
<id>attach-sources</id>
586+
<goals>
587+
<goal>jar-no-fork</goal>
588+
</goals>
589+
</execution>
590+
</executions>
591+
</plugin>
592+
</plugins>
593+
</build>
594+
</profile>
595+
</profiles>
549596
</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:9.0.1:9.0.2-SNAPSHOT

dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.google.cloud.tools</groupId>
1010
<artifactId>dependencies-parent</artifactId>
11-
<version>1.5.16-SNAPSHOT</version>
11+
<version>1.5.16-SNAPSHOT</version><!-- {x-version-update:dependencies:current} -->
1212
</parent>
1313

1414
<artifactId>dependencies</artifactId>

enforcer-rules/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.google.cloud.tools</groupId>
88
<artifactId>dependencies-parent</artifactId>
9-
<version>1.5.16-SNAPSHOT</version>
9+
<version>1.5.16-SNAPSHOT</version><!-- {x-version-update:dependencies:current} -->
1010
</parent>
1111

1212
<artifactId>linkage-checker-enforcer-rules</artifactId>

linkage-monitor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.google.cloud.tools</groupId>
2424
<artifactId>dependencies-parent</artifactId>
25-
<version>1.5.16-SNAPSHOT</version>
25+
<version>1.5.16-SNAPSHOT</version><!-- {x-version-update:dependencies:current} -->
2626
</parent>
2727

2828
<artifactId>linkage-monitor</artifactId>

pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.google.cloud.tools</groupId>
88
<artifactId>dependencies-parent</artifactId>
99
<packaging>pom</packaging>
10-
<version>1.5.16-SNAPSHOT</version>
10+
<version>1.5.16-SNAPSHOT</version><!-- {x-version-update:dependencies:current} -->
1111

1212
<name>Cloud Tools Open Source Code Hygiene Tooling</name>
1313
<url>https://github.com/GoogleCloudPlatform/cloud-opensource-java/</url>
@@ -249,6 +249,11 @@
249249
</profile>
250250
<profile>
251251
<id>release</id>
252+
<activation>
253+
<property>
254+
<name>performRelease</name>
255+
</property>
256+
</activation>
252257
<build>
253258
<plugins>
254259
<plugin>
@@ -277,6 +282,26 @@
277282
</execution>
278283
</executions>
279284
</plugin>
285+
<plugin>
286+
<groupId>org.apache.maven.plugins</groupId>
287+
<artifactId>maven-gpg-plugin</artifactId>
288+
<version>3.2.7</version>
289+
<executions>
290+
<execution>
291+
<id>sign-artifacts</id>
292+
<phase>verify</phase>
293+
<goals>
294+
<goal>sign</goal>
295+
</goals>
296+
<configuration>
297+
<gpgArguments>
298+
<arg>--pinentry-mode</arg>
299+
<arg>loopback</arg>
300+
</gpgArguments>
301+
</configuration>
302+
</execution>
303+
</executions>
304+
</plugin>
280305
</plugins>
281306
</build>
282307
</profile>

release-please-config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
".": {
7+
"component": "dependencies",
8+
"release-type": "java-yoshi"
9+
},
10+
"boms/cloud-lts-bom": {
11+
"component": "gcp-lts-bom",
12+
"release-type": "java-yoshi"
13+
}
14+
},
15+
"bootstrap-sha": "8eb8233f0f402a52f9452ccc633fbce63904163d"
16+
}

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+
dependencies:1.5.15:1.5.16-SNAPSHOT

0 commit comments

Comments
 (0)