Skip to content

Can not use a jar built with quarkus with Jbang #1774

Answered by jmini
jmini asked this question in Q&A
Discussion options

You must be logged in to vote

This is solved with version 0.122.0 and usage of the //NOINTEGRATIONS flag:

///usr/bin/env jbang "$0" "$@" ; exit $?

//DEPS <client SDK based on quarkus>
//JAVA 17
//NOINTEGRATIONS

import static java.lang.System.out;

public class MyScript {

    public static void main(String... args) {
        out.println("start");
        // usage of the client SDK containing the dependency to quarkus
        out.println("end");
    }
}

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@maxandersen
Comment options

@quintesse
Comment options

@maxandersen
Comment options

@jmini
Comment options

@maxandersen
Comment options

Comment options

You must be logged in to vote
4 replies
@maxandersen
Comment options

@jmini
Comment options

@maxandersen
Comment options

@jmini
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jmini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants