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

[FEATURE] Upgrade nexus-platform-api #146

Open
guillermo-varela opened this issue Dec 21, 2023 · 1 comment · May be fixed by #171
Open

[FEATURE] Upgrade nexus-platform-api #146

guillermo-varela opened this issue Dec 21, 2023 · 1 comment · May be fixed by #171
Labels
enhancement New feature or request

Comments

@guillermo-varela
Copy link
Contributor

guillermo-varela commented Dec 21, 2023

Currently used version is 4.0.7-01

  • What feature or behavior is this required for?
    Each version of that library provides bug fixes, improvements and new features when scanning and evaluating applications using Sonatype Lifecycle (IQ Server).

There are particularities in this versions:

  • How could we solve this issue? (Not knowing is okay!)

cc @bhamail / @DarthHater / @shaikhu

@guillermo-varela
Copy link
Contributor Author

guillermo-varela commented Jun 7, 2024

Tests were made using Gradle Toolchain:
Before upgrading nexus-platform-api: the plugin was compiled using Java 11 and worked when running it using Java 8.
Before upgrading nexus-platform-api: the plugin failed to compile.

scan-gradle-plugin/src/main/java/org/sonatype/gradle/plugins/scan/nexus/iq/scan/NexusIqScanTask.java:30: error: cannot access com.sonatype.nexus.api.common.Authentication
import com.sonatype.nexus.api.common.Authentication;
                                    ^
  bad class file: /.../.gradle/caches/modules-2/files-2.1/com.sonatype.nexus/nexus-platform-api/5.0.0-01/.../nexus-platform-api-5.0.0-01.jar(com/sonatype/nexus/api/common/Authentication.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

Additional tests were made and upgrading to use a Gradle version 7.6.2 or higher becomes a requirement not only to build the plugin but also for projects using it.

Failed to create Jar file /.../.gradle/caches/jars-8/.../jackson-core-2.16.0.jar

@shaikhu shaikhu linked a pull request Oct 24, 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
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant