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 generate a decorated class for type NuGetPush #78

Closed
afischer-opentext-com opened this issue Feb 11, 2020 · 4 comments
Closed
Labels

Comments

@afischer-opentext-com
Copy link

afischer-opentext-com commented Feb 11, 2020

I recently tried to update the build system of an older project, bumping the java version, gradle and gradle plugin versions to something current. What I now observe is the following.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\project\build.gradle' line: 2

* What went wrong:
An exception occurred applying plugin request [id: 'com.ullink.nuget', version: '2.18']
> Failed to apply plugin [id 'com.ullink.nuget']
   > Could not create task ':gaia_msi:nugetPush'.
      > Could not create task of type 'NuGetPush'.
         > Could not generate a decorated class for type NuGetPush.
            > java.lang.ClassFormatError: Duplicate method name "setTimeout" with signature "(Ljava.lang.Object;)V" in class file com/ullink/NuGetPush_Decorated

The used gradle version is 6.1.1 and the used Java version is OpenJDK 13.0.0 x64 on Windows.
The gradle files itself do not call the setTimeout method and do not use the NuGetPush feature.

In the past the stuff worked with Java 11 and 12 and Gradle 5.3 with nuget plugin in version 2.15.

Can someone recommend any workaround for this or has an idea where this comes from?

Edit: The last working combination of plugin and gradle is 2.18 with gradle 6.0.1. Everything else, including 6.2-RC-1 does not work.

@ngyukman
Copy link
Contributor

ngyukman commented Feb 13, 2020

Hi, it is because gradle just added timeout in base class in gradle 6, can be fixed by removing it in #79
and use timeout from gradle directly if necessary

so workaround now is to stick to a working gradle version before next patch release

@ngyukman ngyukman added the bug label Feb 13, 2020
@citizenmatt
Copy link
Contributor

Is there a timescale to merge this PR and publish a 2.19 release? I'd love to move up to Gradle 6, but this is a blocker, unfortunately.

@ngyukman
Copy link
Contributor

Sorry just released, but I didn't have time to test it thoroughly with the new Input Output requirements in gradle 6 / 7
if you encounter any problem, please notify us, thanks

@citizenmatt
Copy link
Contributor

That’s great, thank you!

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

3 participants