Skip to content
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

Executable JAR output by Gradle shadowJarExecutable task fails to output version #613

Closed
shashachu opened this issue Oct 13, 2019 · 1 comment
Labels

Comments

@shashachu
Copy link
Contributor

shashachu commented Oct 13, 2019

./ktlint/build/run/ktlint --version
Exception in thread "main" picocli.CommandLine$ExecutionException: Could not get version info from com.pinterest.ktlint.internal.KtlintVersionProvider@7bb11784: java.lang.IllegalStateException: Failed to determine ktlint version
	at picocli.CommandLine$Model$CommandSpec.version(CommandLine.java:4131)
	at picocli.CommandLine.printVersionHelp(CommandLine.java:1672)
	at com.pinterest.ktlint.internal.CommandLineExtKt.printHelpOrVersionUsage(CommandLineExt.kt:17)
	at com.pinterest.ktlint.internal.CommandLineExtKt.printHelpOrVersionUsage$default(CommandLineExt.kt:11)
	at com.pinterest.ktlint.Main.main(Main.kt:56)
Caused by: java.lang.IllegalStateException: Failed to determine ktlint version
	at com.pinterest.ktlint.internal.KtlintVersionProvider.getVersion(KtlintVersionProvider.kt:21)
	at picocli.CommandLine$Model$CommandSpec.version(CommandLine.java:4128)
@shashachu shashachu added the bug label Oct 13, 2019
@shashachu
Copy link
Contributor Author

Fixed by #614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant