-
Notifications
You must be signed in to change notification settings - Fork 57
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: make init-app goal generate sources coherent with the project Hilla version #1901
fix: make init-app goal generate sources coherent with the project Hilla version #1901
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1901 +/- ##
=======================================
Coverage 95.17% 95.17%
=======================================
Files 52 52
Lines 3421 3421
Branches 501 501
=======================================
Hits 3256 3256
Misses 136 136
Partials 29 29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -15,15 +15,15 @@ public class HillaAppInitUtility { | |||
private static final Logger LOGGER = LoggerFactory | |||
.getLogger(HillaAppInitUtility.class); | |||
|
|||
private static final String REACT_SKELETON = "https://github.com/vaadin/skeleton-starter-hilla-react/archive/refs/heads/v2.1.zip"; | |||
private static final String REACT_SKELETON = "https://github.com/vaadin/skeleton-starter-hilla-react/archive/refs/heads/v2.5.zip"; |
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.
Wouldn't it be better to use e.g. Platform.getHillaVersion()
so that the value doesn't have to be hardcoded?
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.
I'd like to have the version (or the branch name) as placeholder (...heads/v%s.zip
or ...heads/%s.zip
) and possibly have the version/branch as a parameter to scaffold(...)
method, but probably it is not worth it.
Also using Platform.getHillaVersion()
may not always work. I don't remember if during pre-releases there's already a related starter branch.
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.
packages/java/plugin-base/src/main/java/dev/hilla/plugin/base/HillaAppInitUtility.java
Outdated
Show resolved
Hide resolved
packages/java/plugin-base/src/main/java/dev/hilla/plugin/base/HillaAppInitUtility.java
Outdated
Show resolved
Hide resolved
…HillaAppInitUtility.java Co-authored-by: Tarek Oraby <42799254+tarekoraby@users.noreply.github.com>
packages/java/plugin-base/src/main/java/dev/hilla/plugin/base/HillaAppInitUtility.java
Outdated
Show resolved
Hide resolved
…HillaAppInitUtility.java
…-coherent-with-the-project-Hilla-version
…-coherent-with-the-project-Hilla-version
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
…lla version (#1901) Co-authored-by: Tarek Oraby <42799254+tarekoraby@users.noreply.github.com>
This ticket/PR has been released with Hilla 24.4.0.alpha1 and is also targeting the upcoming stable 24.4.0 version. |
Fixes #1898