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

Could not find method classifier() for arguments [sources] on task ':sourceJar' #1336

Open
awatson1978 opened this issue Jul 23, 2023 · 2 comments
Labels

Comments

@awatson1978
Copy link
Collaborator

What happened?

A bug happened! Seems to be a deprecated API in the latest version of Gradle + Java.

Environment

------------------------------------------------------------
Gradle 8.2.1
------------------------------------------------------------

Build time:   2023-07-10 12:12:35 UTC
Revision:     a38ec64d3c4612da9083cc506a1ccb212afeecaa

Kotlin:       1.8.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          17.0.8 (Homebrew 17.0.8+0)
OS:           Mac OS X 13.4.1 aarch64

Relevant log output

awatson@MM289218-PC synthea % gradle build
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle' line: 328

* What went wrong:
A problem occurred evaluating root project 'synthea'.
> Could not find method classifier() for arguments [sources] on task ':sourceJar' of type org.gradle.api.tasks.bundling.Jar.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4s
awatson@MM289218-PC synthea % --warning-mode all
zsh: command not found: --warning-mode
awatson@MM289218-PC synthea % gradle build --warning-mode all

> Configure project :
The Project.getConvention() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:19)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:19)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle': line 21
The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:21)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle': line 21
The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:21)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The org.gradle.util.ConfigureUtil type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#org_gradle_util_reports_deprecations
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:208)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:208)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle': line 312
The org.gradle.api.plugins.ApplicationPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#application_convention_deprecation
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:312)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle': line 312
The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2.1/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at build_6x4bz7dddo8nuz6nkqhjika35.run(/Users/awatson/Code/space-health-simulator/synthea/build.gradle:312)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/awatson/Code/space-health-simulator/synthea/build.gradle' line: 328

* What went wrong:
A problem occurred evaluating root project 'synthea'.
> Could not find method classifier() for arguments [sources] on task ':sourceJar' of type org.gradle.api.tasks.bundling.Jar.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 400ms
@awatson1978
Copy link
Collaborator Author

Screenshot 2023-07-23 at 10 53 13 AM Screenshot 2023-07-23 at 10 53 27 AM

@dehall
Copy link
Contributor

dehall commented Aug 8, 2023

@awatson1978 Can you try the latest on master and see if it's still not working?

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

No branches or pull requests

2 participants