Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spring): fix write pom placeholders. #1099

Merged
merged 2 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ static String buildPomString(GapicContext context) {
String clientLibraryVersion = "{{client-library-version}}";

String springStarterArtifactId = clientLibraryName + "-spring-starter";
String springStarterVersion = "{{starter-version}}";
String springStarterName = "Spring Boot Starter - " + clientLibraryShortName;
String springParentVersion = "{{parent-version}}";

StringJoiner sb = new StringJoiner(",\\\n");
sb.add(
Expand All @@ -225,10 +225,9 @@ static String buildPomString(GapicContext context) {
+ " <parent>\n"
+ " <groupId>com.google.cloud</groupId>\n"
+ " <artifactId>generated-parent</artifactId>\n"
+ " <version>%s</version>\n"
+ " </parent>\n"
+ " <groupId>com.google.cloud</groupId>\n"
+ " <artifactId>%s</artifactId>\n"
+ " <version>%s</version>\n"
+ " <name>%s</name>\n"
+ " <description>Spring Boot Starter with AutoConfiguration for %s</description>\n"
+ "\n"
Expand All @@ -254,8 +253,8 @@ static String buildPomString(GapicContext context) {
+ "</dependencies>\n"
+ "\n"
+ "</project>",
springParentVersion,
springStarterArtifactId,
springStarterVersion,
springStarterName,
clientLibraryShortName,
clientLibraryGroupId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>generated-parent</artifactId>
<version>{{parent-version}}</version>
</parent>
<groupId>com.google.cloud</groupId>
<artifactId>{{client-library-artifact-id}}-spring-starter</artifactId>
<version>{{starter-version}}</version>
<name>Spring Boot Starter - localhost:7469</name>
<description>Spring Boot Starter with AutoConfiguration for localhost:7469</description>

Expand Down