-
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
Introduce a new CLI command to create JBang Quarkus projects #13209
Comments
/cc @quarkusio/devtools, @maxandersen |
I can try tackling this, if no one else hasn't started working on it. |
@geoandri create a new command |
jbang
as Quarkus project type
Here is the code to create a jbang quarkus project: final QuarkusJBangCodestartProjectInput input = QuarkusJBangCodestartProjectInput.builder()
.putData("quarkus.version", "999-SNAPSHOT")
.build();
final Path projectDir = ...
getCatalog().createProject(input).generate(projectDir); |
Have a look to
Also you will need to create a new command in |
Thanks @ia3andy ! |
Hi @ia3andy , While running the generated JBang project I am getting the following error:
I was wondering if you have any idea for this error. |
@geoandri could you push the generated project to github and share it? cc @maxandersen |
looks like logmanager is not set right or classloader error - please share the actual command used to run and what is in the .java file ? |
@ia3andy you can have a look at the generated project at https://github.com/geoandri/jbangGreetting . @maxandersen I used the command |
This is using very first poc repo. It won't work :) Please see wat jbang init -t qrest test.java generates in comments. |
Hi @maxandersen , The generated project in the repo that I posted was generated using the code from #13004 (comment) . I have created a new command using the latest master that generates the project using final QuarkusJBangCodestartProjectInput input = QuarkusJBangCodestartProjectInput.builder()
.putData("quarkus.version", "999-SNAPSHOT")
.build();
final Path projectDir = testDirPath.resolve("default");
getCatalog().createProject(input).generate(projectDir); How can I switch to the latest one? |
Remove the //Repos |
Thanks @maxandersen , To my undestanding, there are two separate issues.
|
Okey that #2 ain't good. Can you open separate issue on that ? Seems time we get better test coverage for jbang builds. |
Sure @maxandersen , created #13508 . |
@ia3andy I have submitted a PR. Who should I ping for a review? |
Description
Introduce a new CLI command to create JBang Quarkus projects with a warning saying it's experimental.
The text was updated successfully, but these errors were encountered: