-
Notifications
You must be signed in to change notification settings - Fork 146
Release v39.5.0 #1562
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
Release v39.5.0 #1562
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 39.4.0 | ||
| 39.5.0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file contains a hardcoded version number, which is also defined in |
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ public class Client { | |||||
| private ClientInterface httpClient; | ||||||
| private Config config; | ||||||
| public static final String LIB_NAME = "adyen-java-api-library"; | ||||||
| public static final String LIB_VERSION = "39.4.0"; | ||||||
| public static final String LIB_VERSION = "39.5.0"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The library version is hardcoded here, duplicating the version defined in You can configure the <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
...
<configuration>
<instructions>
<Export-Package>com.adyen</Export-Package>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
</plugin>Then, you can retrieve it in the code like this. This will make your release process more robust.
Suggested change
|
||||||
| public static final String TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com"; | ||||||
| public static final String TERMINAL_API_ENDPOINT_LIVE = "https://terminal-api-live.adyen.com"; | ||||||
| public static final String TERMINAL_API_ENDPOINT_US = "https://terminal-api-live-us.adyen.com"; | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version number is hardcoded in this example. This requires manual updates for each release and can be missed, leading to outdated documentation. Consider using a placeholder for the version, like
${project.version}, and using a Maven plugin such asmaven-replacer-pluginto substitute it with the current project version during the build process. This would ensure the documentation always reflects the correct version frompom.xml.