-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
com.intuit.karate:karate-netty:0.9.5 not in maven ? #1177
Comments
fyi, see https://gist.github.com/maxandersen/7bc4e55467f48847167c94eb0be6b4c2 if interested in what I'm trying to do. |
@maxandersen there is no more there is a main class here: https://github.com/intuit/karate/blob/master/karate-core/src/main/java/com/intuit/karate/cli/Main.java - but it may need the |
okey, just that the main jar comes out of karate-netty; and if you use this repo it is there. But if you say karate-apache is the right one I'll use that instead :) |
I still only see that in the karate-netty module here: https://github.com/intuit/karate/blob/master/karate-netty/src/main/java/com/intuit/karate/Main.java |
@maxandersen it is 95% the same. eventually they will merge but it should work for what you are trying to do. did that help :| https://github.com/intuit/karate/wiki/Developer-Guide#build-standalone-jar-and-zip |
well, I for now can just use jitpack to get it as a mvn dependency: from https://gist.github.com/maxandersen/7bc4e55467f48847167c94eb0be6b4c2:
is what I do for now to work around it since the two cli's are very different in behavior afaics. |
@maxandersen yes I realized later that some more things are missing: e.g. mocks. those who use Java use the API and those who use the fatjar use the CLI don't know much about jbang but you can write groovy-like code right ? for e.g. to start a mock: https://github.com/intuit/karate/tree/master/karate-netty#embedding so something like this: var file = new java.io.File(myFile)
var server = com.intuit.karate.netty.FeatureServer.start(file, 0, false, null); feel free to submit a PR if you really want a better CLI ;) no one has requested yet |
jbang (see https://jbang.dev) is to easily write and run java scripts/snippets. For karate which is "just a jar" to run you could have a URL have the latest release containing:
(could also use master or SNAPSHOT as version to get latest greatest) and then you can just run:
but I think I might just add |
@maxandersen cool. yes url to jar sounds like a good idea ! |
@maxandersen max - we finally got rid of the extra CLI. there is only one artifact. |
also cli can start an app server using our new stuff
made change as per twitter discussion: https://twitter.com/maxandersen/status/1334826965577117699 |
fyi, with latest jbang install if you put a jbang-catalog.json into intuit/karate with alias for karate jar you can do things like:
this will have you could also make a intuit/jbang-catalog then the name would just be |
note, |
@maxandersen that is awesome. I think the command above has a cut-and-paste error it should be (no
I started a new shell, but
|
Yes, still need a main to be there :) |
For people who would like to run karate mocks from within IDE like eclipse, it seems that |
@xbranko this is done. try 0.9.9.RC2 and please look at this: https://github.com/intuit/karate/wiki/1.0-upgrade-guide |
1.0 released |
I'm trying to use jbang.dev with karate and for that it would be great to have the Main class in a mvn repo.
It should be in com.intuit.karate:karate-netty according to metadata in the main karate jar, but but the latest release is com.intuit.karate:karate-netty:0.9.2
Can you help locate it ?
The text was updated successfully, but these errors were encountered: