-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support incremental maven builds in PTL #11061
Support incremental maven builds in PTL #11061
Conversation
86181d4
to
6ea94ea
Compare
phoenix failure might be unrelated |
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.
LGTM
if which mvnd >/dev/null; then | ||
# Using mvnd here can save more than 2 seconds compared to ./mvnw startup cost. This is especially important | ||
# when invoking inspection commands like --help, env list, etc. | ||
trino_version=$(mvnd -B help:evaluate -Dexpression=pom.version -q -DforceStdout --raw-streams) |
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.
Would it make sense to skip this if there's only one launcher jar?
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.
Not sure. What if the launcher jar is outdated?
Looks fine. Thanks! |
`mvn install` is typically faster than `mvn clean install`, but it leaves previous launcher jar in the target/. Let bin/ptl pick it up nicely. This also prevents the script from picking up a way-too-old launcher jar, i.e. after project version change.
6ea94ea
to
8ee5843
Compare
mvn install
is typically faster thanmvn clean install
, but itleaves previous launcher jar in the target/. Let bin/ptl pick it up
nicely.
This also prevents the script from picking up a way-too-old launcher
jar, i.e. after project version change.