Skip to content

fix: set current sdk version using @project.version@#154

Merged
octonato merged 1 commit intomainfrom
rgc/fix-sdk-version-in-generated-maven-project
Jul 16, 2021
Merged

fix: set current sdk version using @project.version@#154
octonato merged 1 commit intomainfrom
rgc/fix-sdk-version-in-generated-maven-project

Conversation

@octonato
Copy link
Copy Markdown
Member

No description provided.

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<akkaserverless-sdk.version>0.7.0-beta.10</akkaserverless-sdk.version>
<akkaserverless-sdk.version>@project.version@</akkaserverless-sdk.version>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we had already a solution for this, but it was not being used for the sdk version, but only for the maven-plugin version.

We want sdk, testkit and maven-plugin to use akkaserverless-sdk.version and it's now set using @project.version@.

<groupId>com.akkaserverless</groupId>
<artifactId>akkaserverless-maven-plugin</artifactId>
<version>@project.version@</version>
<version>${D}{akkaserverless-sdk.version}</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${D}?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to avoid premature substitution. It's used everywhere in this file whenever we want the archetype to have a ${var}.

However, it may not be needed. I can check it later, but don't want to change more than necessary here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trixy!

@octonato octonato merged commit f2c5974 into main Jul 16, 2021
@octonato octonato deleted the rgc/fix-sdk-version-in-generated-maven-project branch July 16, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants