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

Doesn't work with Gradle plugins block #14

Open
EchoEllet opened this issue May 16, 2024 · 0 comments
Open

Doesn't work with Gradle plugins block #14

EchoEllet opened this issue May 16, 2024 · 0 comments

Comments

@EchoEllet
Copy link

EchoEllet commented May 16, 2024

To migrate from legacy apply plugin to plugins block, the alternative of:

buildscript {
    repositories {
	mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'org.mini2Dx:gettext-gradle-plugin:1.7.1'
    }
}

project(":your-project") {
    apply plugin: "org.mini2Dx.gettext"
...

would be:

plugins {
    id("org.mini2Dx.gettext") version "1.11.0"
}

But it didn't work for some reason, any idea?

I asked on Slack and a developer called Björn Kautler (@Vampire on Slack) said:
it does not publish the marker artifacts that are necessary to translate from the Plugin ID to the actual code artifact.

The reason I'm interested in using the plugins block is not only for migrating to the new way of doing things but also for adding support to Gradle Kotlin DSL, you don't have to write it in Kotlin DSL (.KTS), only the publishing bug needs to be fixed, he also said Type-safe accessors are only generated for plugins you apply in the plugins { ... ] block

Thank you.

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

No branches or pull requests

1 participant