-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Externalize gradle/maven wrapper command from codestart template #12610
Conversation
@glefloch that's not a bad idea, but it means you have to update all the different commands (and usage), but it would save us from overriding all the different commands where the arguments are the same.. For the GitHub Action issue, the problem is with the CI container which need to include either I let you figure out the best solution :) |
ah ok, I get you mean for action, in fact, if you don't use the wrapper, you need the right github action. I will update my branch. I just have another quick question, who does edit this file? Is that generated from |
@glefloch for now, it's used by code.quarkus.io (https://github.com/quarkusio/code.quarkus.io/blob/master/src/main/kotlin/io/quarkus/code/service/QuarkusProjectService.kt#L58) when github is picked (and always with the wrappers) so no problem. We don't have code for now that uses github action without the wrapper, but the |
@ia3andy, I added some test to assert the condition. Regarding maven, it seems to be available by default on |
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 added a few simplification ideas 👆
...rm-descriptor-json/src/main/resources/codestarts/quarkus/core/buildtool/gradle/codestart.yml
Outdated
Show resolved
Hide resolved
...rm-descriptor-json/src/main/resources/codestarts/quarkus/core/buildtool/gradle/codestart.yml
Outdated
Show resolved
Hide resolved
...orm-descriptor-json/src/main/resources/codestarts/quarkus/core/buildtool/maven/codestart.yml
Outdated
Show resolved
Hide resolved
...sources/codestarts/quarkus/core/tooling/github-action/base/.github/workflows/ci.tpl.qute.yml
Outdated
Show resolved
Hide resolved
...criptor-json/src/main/resources/codestarts/quarkus/core/tooling/gradle-wrapper/codestart.yml
Outdated
Show resolved
Hide resolved
...scriptor-json/src/main/resources/codestarts/quarkus/core/tooling/maven-wrapper/codestart.yml
Outdated
Show resolved
Hide resolved
...ation-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/QuarkusCodestartRunIT.java
Outdated
Show resolved
Hide resolved
...rm-descriptor-json/src/main/resources/codestarts/quarkus/core/buildtool/gradle/codestart.yml
Outdated
Show resolved
Hide resolved
@glefloch and thanks for doing this :) |
@ia3andy I updated the branch with the changes we discussed. |
...or-json/src/main/resources/codestarts/quarkus/core/buildtool/gradle-kotlin-dsl/codestart.yml
Outdated
Show resolved
Hide resolved
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.
beside build-ci-args
it looks good :)
ok no problem |
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.
Well done!
This branch aims to externalize the build tool command used in the generated github action workflow.
@ia3andy I added a field
build-cmd
which could be used by all command such as:But I don't know if this is the goal.
also, I don't how to test if my code is correct, could you give me pointers to validate it ? thanks :)
close #12438