r/java • • Jan 07 '26

Weekly or monthly thread discussing cool projects people are working on

I always love to see what insane stuff others are cooking for fun as an inspiration for my own ideas. I am surprised to see this sub not having one already like golang, csharp, rust etc I request moderators to start this thread either weekly or monthly

50 Upvotes

47 comments sorted by

View all comments

Show parent comment

2

u/unknowinm Jan 07 '26

The cli is distributed with the gradle distZip or how it’s called which is like a fatJar but with a start script that does all the work.
Maybe it works with jbang, I’m not sure. Right now the tool can be installed with brew/choco/snap and an installation script which just downloads the distZip (jar+all deps) and configures the PATH.
I will add support for jbang a bit later if I get some traction. I was not aware about jbang commands and how easy it is to install stuff

Feel free to give it a try!

2

u/maxandersen Jan 08 '26

I didn’t see any fatjar. Only a zip with a bunch of jars.

If you make an actual fatjar available or even better publish the cli to maven repo then I’m happy to provide jbang catalog PR.

1

u/unknowinm Jan 08 '26

Should be pretty easy. Will look at it later today. I used jrelease to do the publishing to different distribution methods and I see they have support for jbang

1

u/unknowinm Jan 08 '26 edited Jan 08 '26

Hello 👋 the repo that pushes to maven is unfortunately private to prevent potential credential leaks so even tho I would love to have a contributor, it is not possible at the moment.

We did push a fatjar to

will work tomorrow to make it available on jbang

1

u/maxandersen Jan 08 '26

cool - fyi, seems not all deps are there or somehting wrong in dependency of that pom:

jbang cloud.kitelang:kite-cli:0.3.4

[jbang] Resolving dependencies...

[jbang] cloud.kitelang:kite-cli:0.3.4

[jbang] [ERROR] Could not resolve dependencies: The following artifacts could not be resolved: cloud.kitelang:engine:jar:0.0.1 (absent): Could not find artifact cloud.kitelang:engine:jar:0.0.1 in central (https://repo1.maven.org/maven2/)

[jbang] Run with --verbose for more details. The --verbose must be placed before the jbang command. I.e. jbang --verbose run [...]

..

but this works:

jbang cloud.kitelang:kite-cli:0.3.4:fat@fatjar

:)

1

u/unknowinm Jan 08 '26

aah wow! already works with jbang? thought I had to do some more work! very cool.

makes sense as the engine is not publicly available as it does all the heavy lifting of the project and thought would be better to keep it private for now. But it should be included in the fatjar no?

I had no issues installing it but that's maybe because I already had kite-cli installed. I also don't like the ":fat" any idea if that can be changed? same for "@fatjar" ?

❯ jbang cloud.kitelang:kite-cli:0.3.4:fat@fatjar
[jbang] Resolving dependencies...
[jbang] Dependencies resolved

1

u/maxandersen Jan 08 '26

You can make a jbang-catalog repo and I can submit json file In there which hides those maven concepts/terms + add the needed flags for jvm

1

u/unknowinm Jan 09 '26

Good evening!

I opened this PR: https://github.com/jbangdev/jbang-catalog/pull/78

I'm waiting of it's approval anytime soon.

Weirdly I also get the dependencies unresolved issue now... I'll look into that

1

u/maxandersen Jan 09 '26

Thanks. The idea is though you put that in your own repo Ie. Kitelang/jbang-catalog. Then it becomes jbang kite@kitelang.

1

u/unknowinm Jan 09 '26 edited Jan 09 '26

hm... I have that in https://github.com/kitecorp/jbang-catalog is it enough?

I did some more updates and I think it works as expected:

❯ jbang kite@kitecorp --version
kite 0.3.5

1

u/unknowinm Jan 09 '26

also, I understand now lol.. sorry for the confusion...I was thinking about something else. You now have the public repo, please take a look at it if you have 10 minutes as I have no idea how to set it up