Hello everyone. I've created a Kotlin coroutines v...
# gradle
d
Hello everyone. I've created a Kotlin coroutines validation package for spring. It's in Beta. It's my first package and I didn't want to publish it to maven until it's ready. Did I do the right thing to publish it on jitpack ? Any recommendation ? Here's the package: https://github.com/danygiguere/spring-validation-dsl
h
Well, you can but I would use GitHub packages instead.
d
I've read github packages need authentication (in the build.gradle.kts). is that still the case ?
h
Yes it is.
a
I'm working on a helper plugin for exactly this situation. It attaches files to a GitHub Release, and then consuming projects just have to define a custom repo. It's still wip and rough around the edges, but maybe you'd like to try it. You just need to install the gh cli and authenticate. https://github.com/adamko-dev/github-asset-publish
➕ 2
h
Nice, will take a look, GitHub releases also does support immutable release assets
a
yes, I'm interested in supporting immutable assets too - but from what I can tell they need to be created in a GitHub Workflow? And afaik Gradle doesn't support them yet.
h
No you don’t.
You only need to create a draft release, upload the assets and publish the release later.
a
oh nice, that's useful, thanks
h
But I would create an init script to install it only on GitHub action run
And I don’t know if you can disable the automatic checksum generation of GitHub releases
v
I personally would never use GPR, unless it is only for yourself and you know that you will always only consume it from inside GHA where it just works, unless the finally fix the auth-requirement. JitPack is kind of ok, if it is just a temporary try-out thing, not for proper publishing because for that it is totally unusable. It is slow, breaks your builds if you are unlucky, is unreliable, ... What you could do is, if you already registered for MavenCentral publishing, you can enable snapshots and just publish snapshot versions for users to try up-front.
👍 1