-
Notifications
You must be signed in to change notification settings - Fork 95
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
add jte-kotlin if ktolin #2604
base: 4.6.x
Are you sure you want to change the base?
add jte-kotlin if ktolin #2604
Conversation
generatorContext.addDependency(MicronautDependencyUtils.viewsDependency() | ||
.artifactId(ARTIFACT_ID_MICRONAUT_VIEWS_JTE) | ||
.compile()); | ||
if (generatorContext.getLanguage() == Language.KOTLIN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are both dependencies with a scope compile? I would expect the view dependency as implementation
and the other as compileOnly
- in Gradle terminology
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to compileOnly in the module micronaut-projects/micronaut-views#877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but my understanding is that the dependency is only needed as a compile plugin so in starter it should be added as compile only too.
Are you sure we need to have that dependency in Micronaut Views?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure we need to have that dependency in Micronaut Views?
What dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You wrote that you changed it to compileOnly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this PR, it's a bit strange to have micronaut-views and kotlin with the same scope
See: micronaut-projects/micronaut-views#876