-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Automatically replace version references on release:prepare
#2212
Merged
eamonnmcmanus
merged 4 commits into
google:master
from
Marcono1234:marcono1234/automatically-replace-version-on-release
Oct 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a86f142
Automatically replace version references on `release:prepare`
Marcono1234 27a19f0
Specify encoding and improve placeholder replacements
Marcono1234 a72f88f
Merge branch 'master' into marcono1234/automatically-replace-version-…
Marcono1234 55f4bb7
Add `since $next-version$` for `JsonArray.asList` and `JsonObject.asMap`
Marcono1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1019,6 +1019,7 @@ public <T> T fromJson(String json, Type typeOfT) throws JsonSyntaxException { | |
* | ||
* @see #fromJson(Reader, TypeToken) | ||
* @see #fromJson(String, Class) | ||
* @since $next-version$ | ||
*/ | ||
public <T> T fromJson(String json, TypeToken<T> typeOfT) throws JsonSyntaxException { | ||
if (json == null) { | ||
|
@@ -1111,6 +1112,7 @@ public <T> T fromJson(Reader json, Type typeOfT) throws JsonIOException, JsonSyn | |
* | ||
* @see #fromJson(String, TypeToken) | ||
* @see #fromJson(Reader, Class) | ||
* @since $next-version$ | ||
*/ | ||
public <T> T fromJson(Reader json, TypeToken<T> typeOfT) throws JsonIOException, JsonSyntaxException { | ||
JsonReader jsonReader = newJsonReader(json); | ||
|
@@ -1194,6 +1196,7 @@ public <T> T fromJson(JsonReader reader, Type typeOfT) throws JsonIOException, J | |
* | ||
* @see #fromJson(Reader, TypeToken) | ||
* @see #fromJson(JsonReader, Type) | ||
* @since $next-version$ | ||
*/ | ||
public <T> T fromJson(JsonReader reader, TypeToken<T> typeOfT) throws JsonIOException, JsonSyntaxException { | ||
boolean isEmpty = true; | ||
|
@@ -1299,10 +1302,10 @@ public <T> T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException | |
* @return an object of type T from the JSON. Returns {@code null} if {@code json} is {@code null} | ||
* or if {@code json} is empty. | ||
* @throws JsonSyntaxException if json is not a valid representation for an object of type typeOfT | ||
* @since 1.3 | ||
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 was a copy & paste error I made in #1700. |
||
* | ||
* @see #fromJson(Reader, TypeToken) | ||
* @see #fromJson(JsonElement, Class) | ||
* @since $next-version$ | ||
*/ | ||
public <T> T fromJson(JsonElement json, TypeToken<T> typeOfT) throws JsonSyntaxException { | ||
if (json == null) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Have removed this because it looks like this would prevent subsequent (non-dry-run)
mvn release:prepare
from working properly (unless you made a rollback in between)?