ajalt / clikt

Multiplatform command line interface parsing for Kotlin
https://ajalt.github.io/clikt/
Apache License 2.0
2.53k stars 120 forks source link

Is clikt-core published? #523

Closed 0101a1a closed 1 month ago

0101a1a commented 4 months ago

Looking at clikt module, it provide the following code snippet:

implementation("com.github.ajalt.clikt:clikt-core:$cliktVersion")

Using:

implementation("com.github.ajalt.clikt:clikt-core:4.4.0")

Would give error:

Could not find com.github.ajalt.clikt:clikt-core:4.4.0.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/com/github/ajalt/clikt/clikt-core/4.4.0/clikt-core-4.4.0.pom
  Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I already declared mavenCentral().

Does this module have a different version or it's something meant to be used internally?

ajalt commented 4 months ago

It's not released yet, although I plan to soon. You can use it now with the latest snapshot build. If you do, I'd love to hear any feedback you have.

bitspittle commented 1 month ago

Just checking in now that it's almost mid September. I'm experimenting with snapshots locally and they seem to be working fine, but I'm a bit concerned about releasing software on top of a snapshot build (especially since I was using 4.4.0.25-SNAPSHOT recently and just updated to 41-SNAPSHOT and got a handful of compile errors, so it's clear that things are still being experimented with).

As an aside, how come NoOpCliktCommand is now part of the mordant module now and not core?

ajalt commented 1 month ago

I've been working on a major version of mordant, which I released this past weekend. Now that that's done, I can update clikt to use it and make a release of Clikt.

how come NoOpCliktCommand is now part of the mordant module now and not core?

https://github.com/ajalt/clikt/pull/531

bitspittle commented 1 month ago

Congrats! I'm certainly not under any urgent pressure, so please don't rush on my account. Feel free to bask in the well-deserved relief of a major release for as long as you'd like :) And thanks for your hard work.

Not sure why I wasn't seeing the NoOpCliktCommand in the core module; maybe it was a Gradle sync issue? I'll check again later.

ajalt commented 1 month ago

The one in the core module is called NoOpCoreCliktCommand to match all the other CoreCliktCommands. The NoOpCliktCommand is in the mordant module because it uses the mordant help formatter.

EchoEllet commented 3 weeks ago

NoOpCliktCommand was part of the Mordant module, then moved to the core. It didn't use the Mordant help formatter, so renamed to CoreNoOpCliktCommand and then a copy of it made in Mordant module with the name NoOpCliktCommand.