MissingMethodException publishing plugin

Hi,
I am trying to publish my first plugin, however I Get the followig error when running ./gradlew publishPlugins.

* Where:
Build file '/Users/torsten/Projekte/Technisches/simple-semantic-versioning-plugin/plugin/build.gradle' line: 23

* What went wrong:
A problem occurred evaluating project ':plugin'.
> No signature of method: build_b5y4g5zwhme7gwj2q35xwveb6.pluginBundle() is applicable for argument types: (build_b5y4g5zwhme7gwj2q35xwveb6$_run_closure3) values: [build_b5y4g5zwhme7gwj2q35xwveb6$_run_closure3@22b03a93]

Line 23 is the line with pluginBundle


pluginBundle {
    website = 'https://github.com/torstenzander/simple-semantic-versioning-plugin'
    vcsUrl = 'https://github.com/torstenzander/simple-semantic-versioning-plugin.git'
    tags = listOf('version', 'semantic', 'increase')
}

gradlePlugin {
    plugins {
        simplesematicversioning {
            id = 'de.tzander.gradle.simplesematicversioning'
            displayName = 'Simple Semantic Versioning Plugin'
            description = ""
            implementationClass = 'de.torstenzander.gradle.simplesematicversioning.SimpleSemanticVersioningPlugin'
        }
    }
}

I don’t see why the method pluginBundle is missing. Can anybody help here.

Gradle Gradle 7.1.1
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant™ version 1.10.9 compiled on September 27 2020
JVM: 14 (Oracle Corporation 14+36-1461)
OS: Mac OS X 10.16 x86_64

I found the error:

tags = listOf(‘version’, ‘semantic’, ‘increase’). is kotlin should be

tags = [‘version’, ‘semantic’, ‘increase’]

1 Like