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

Cannot compile with info.picocli:picocli-spring-boot-starter dependency #1294

Closed
remal opened this issue Jan 2, 2021 · 2 comments
Closed

Comments

@remal
Copy link

remal commented Jan 2, 2021

I'm using info.picocli:picocli-spring-boot-starter:4.6.0 as a Gradle dependency.

Looks like that after fixing Gradle warnings info.picocli:picocli:4.6.0 transitive dependency became runtime and its classes can't be used at compile-time.

implementation rootProject
implementation "org.springframework.boot:spring-boot-starter:$springBootVersion"

I suppose api should be used instead of implementation, as Gradle treats implementation as runtime only dependencies.

Take a look: https://mvnrepository.com/artifact/info.picocli/picocli-spring-boot-starter/4.6.0
Maven Repository - info picocli

@remal
Copy link
Author

remal commented Jan 2, 2021

I suggest changing this:

implementation rootProject
implementation "org.springframework.boot:spring-boot-starter:$springBootVersion"

... to:

 api     rootProject 
 api     "org.springframework.boot:spring-boot-starter:$springBootVersion" 

This change should fix the issue.

@remkop
Copy link
Owner

remkop commented Jan 3, 2021

Thank you for raising this!
This is fixed in the 4.6.1 release.

@remkop remkop closed this as completed Jan 3, 2021
MarkoMackic pushed a commit to MarkoMackic/picocli that referenced this issue Oct 17, 2021
MarkoMackic added a commit to MarkoMackic/picocli that referenced this issue Oct 17, 2021
MarkoMackic added a commit to MarkoMackic/picocli that referenced this issue Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants