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

add jte-kotlin if ktolin #2604

Open
wants to merge 1 commit into
base: 4.6.x
Choose a base branch
from
Open

add jte-kotlin if ktolin #2604

wants to merge 1 commit into from

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Sep 9, 2024

generatorContext.addDependency(MicronautDependencyUtils.viewsDependency()
.artifactId(ARTIFACT_ID_MICRONAUT_VIEWS_JTE)
.compile());
if (generatorContext.getLanguage() == Language.KOTLIN) {
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor

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

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

Successfully merging this pull request may close these issues.

2 participants