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

Plugin incompatible with modern Gradle #1

Open
bpfoster opened this issue Jul 3, 2024 · 0 comments · May be fixed by #2
Open

Plugin incompatible with modern Gradle #1

bpfoster opened this issue Jul 3, 2024 · 0 comments · May be fixed by #2

Comments

@bpfoster
Copy link

bpfoster commented Jul 3, 2024

This thing was cool back in its day, but it's 2024 and the world has progressed, buddy.

Attempting to use this with a modern Gradle version (e.g. 8.8) does not work.

A problem occurred evaluating root project 'gradleapi'.
> Plugin with id 'maven' not found.

Take out the removed maven plugin and:

A problem occurred evaluating root project 'gradleapi'.
> Could not find method compile() for arguments [org.gradle.api.internal.artifacts.dependencies.DefaultFileCollectionDependency_Decorated@5f19829b] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

If I resolve that, then I get a deprecation warning:

Build file '/home/devman/dev/third-party/gradleapi/build.gradle': line 16
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_5cfcasfl837gqoyyneh03etxm$_run_closure1.doCall$original(/home/devman/dev/third-party/gradleapi/build.gradle:16)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_5cfcasfl837gqoyyneh03etxm.run(/home/devman/dev/third-party/gradleapi/build.gradle:15)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

If I resolve that, then I get a compile error:

> Task :compileGroovy
startup failed:
/home/devman/dev/third-party/gradleapi/src/main/groovy/kkdt/gradle/api/task/scripts/ExtendedJavaStartScriptGenerationDetails.groovy: 22: Can't have an abstract method in a non-abstract class. The class 'kkdt.gradle.api.task.scripts.ExtendedJavaStartScriptGenerationDetails' must be declared abstract or the method 'java.util.List getModulePath()' must be implemented.
 @ line 22, column 1.
   class ExtendedJavaStartScriptGenerationDetails implements JavaAppStartScriptGenerationDetails {
   ^

1 error


> Task :compileGroovy FAILED
bpfoster added a commit to bpfoster/gradleapi that referenced this issue Jul 3, 2024
Addresses immediate errors and deprecation warnings

Has not actually been tested for runtime correctness

Fixes kkdt#1
bpfoster added a commit to bpfoster/gradleapi that referenced this issue Jul 3, 2024
Addresses immediate errors and deprecation warnings

Has not actually been fully tested for runtime correctness

Fixes kkdt#1
@bpfoster bpfoster linked a pull request Jul 3, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant