Skip to content

Recommend Gradle version to users #1280

Open
@ybyzek

Description

@ybyzek

Tutorials may need a warning to users on which Gradle version to use (or be explicit with --gradle-version 7.4.2).

Otherwise:

FAILURE: Build failed with an exception.

* Where:
Build file '...build.gradle' line: 22

* What went wrong:
...
> Could not get unknown property 'mainClass' for object of type org.gradle.api.plugins.internal.DefaultJavaApplication.

or

A problem was found with the configuration of task ':shadowJar' (type 'ShadowJar').
  - In plugin 'com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin' type 'com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar' property 'mainClassName' doesn't have a configured value.

Internal Slack thread

cc: @bbejeck

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions