Skip to content

Excavator: Prepare for Gradle 9 - #2990

Open
svc-excavator-bot wants to merge 1 commit into
developfrom
roomba/gradle-9-preparation
Open

Excavator: Prepare for Gradle 9#2990
svc-excavator-bot wants to merge 1 commit into
developfrom
roomba/gradle-9-preparation

Conversation

@svc-excavator-bot

Copy link
Copy Markdown
Collaborator
excavator is a bot for automating changes across repositories.

Changes produced by the roomba/gradle-9-preparation check.

Migrate application.mainClassName to mainClass

Deprecated in Gradle 7.1, removed in Gradle 9.0.

The mainClassName property was removed in favour of the mainClass Property<String>. At the top level it must be qualified as application.mainClass — the replacement lives only on the extension, not as a project property — e.g.

apply plugin: 'application'

mainClassName = 'com.example.Main'

now becomes

apply plugin: 'application'

application.mainClass = 'com.example.Main'

Inside an application { } block it is set unqualified, e.g.

application {
    mainClassName = 'com.example.Main'
}

now becomes

application {
    mainClass = 'com.example.Main'
}

To enable or disable this check, please contact the maintainers of Excavator.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant