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

Gradle 8.0 warnings #67

Open
blasphemetheus opened this issue Jan 23, 2023 · 0 comments
Open

Gradle 8.0 warnings #67

blasphemetheus opened this issue Jan 23, 2023 · 0 comments

Comments

@blasphemetheus
Copy link

Problem: deprecated features of 7.?? Gradle used in build.gradle

Effect: might cause crashes, or just gradle warnings.

Using Gradle 8.0 here, should note in readme a dependency on using a pre-8.0 version of gradle to install, otherwise there might be issues, get a lot of gradle warnings :) Or you could change over to 8.0 Shrug. If so, warnings suggest changes as listed below:
prob just replace baseName with archiveBaseName and see if it throws an error.

Adding text of error message below >PS C:...\git\Ghidra-GameCube-Loader> ./gradlew --warning-mode all

Configure project :
Adding a Configuration as a dependency is a confusing behavior which isn't recommended. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. If you're interested in inheriting the dependencies from the Configuration you are adding, you should use Configuration#extendsFrom instead. See https://docs.gradle.org/7.5.1/dsl/org.gradle.api.artifacts.Configuration.html#org.gradle.api.artifacts.Configuration:extendsFrom(org.gradle.api.artifacts.Configuration[]) for more details.
at build_6l09yrd4pkydtf39ontptle3y$_run_closure5.doCall(C:\Users...\Desktop\git\Ghidra-GameCube-Loader*build.gradle:63*)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveBaseName property instead. See https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:baseName for more details.
at build_6l09yrd4pkydtf39ontptle3y$_run_closure6.doCall(C:\Users...\Desktop\git\Ghidra-GameCube-Loader*build.gradle:67*)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.extension property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveExtension property instead. See https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:extension for more details.
at build_6l09yrd4pkydtf39ontptle3y$_run_closure6.doCall(C:\Users...\Desktop\git\Ghidra-GameCube-Loader*build.gradle:68*)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the destinationDirectory property instead. See https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:destinationDir for more details.
at build_6l09yrd4pkydtf39ontptle3y$_run_closure6.doCall(C:\Users...\Desktop\git\Ghidra-GameCube-Loader*build.gradle:69*)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.version property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveVersion property instead. See https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:version for more details.
at build_6l09yrd4pkydtf39ontptle3y$_run_closure6.doCall(C:\Users...\Desktop\git\Ghidra-GameCube-Loader*build.gradle:70*)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

DimitriPilot3 added a commit to DimitriPilot3/Ghidra-GameCube-Loader that referenced this issue Nov 6, 2024
Fixes warnings that appeared in Gradle 7:

* [Configurations no longer allowed as Dependencies][1]
* [AbstractArchiveTask API Cleanup][2]: Deprecated properties `baseName`, `extension`, `destinationDir`, and `version` have been removed in Gradle 8. Instead use `archiveBaseName`, `archiveExtension`, `destinationDirectory`, and `archiveVersion`.

Closes Cuyler36#67.

[1]: https://docs.gradle.org/current/userguide/upgrading_version_7.html#configurations_no_longer_allowed_as_dependencies
[2]: https://docs.gradle.org/current/userguide/upgrading_version_7.html#abstractarchivetask_api_cleanup
DimitriPilot3 added a commit to DimitriPilot3/Ghidra-GameCube-Loader that referenced this issue Nov 6, 2024
Fixes errors that appeared as warnings in Gradle 7:

* Configurations no longer allowed as Dependencies

* AbstractArchiveTask API Cleanup: Deprecated properties `baseName`, `extension`, `destinationDir`, and `version` have been removed in Gradle 8. Instead use `archiveBaseName`, `archiveExtension`, `destinationDirectory`, and `archiveVersion`.
https://docs.gradle.org/current/userguide/upgrading_version_7.html#abstractarchivetask_api_cleanup

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

No branches or pull requests

1 participant