Skip to content

Doesn't work with Gradle plugins block #14

Description

@EchoEllet

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions