sonatype-nexus-community / scan-gradle-plugin

Gradle plugin that scans the dependencies of a Gradle project using Sonatype platforms: OSS Index and Nexus IQ Server.
Apache License 2.0
77 stars 22 forks source link

[BUG] nexusIqScan failing due to SAXNotRecognizedException after upgrade to gradle 8.4 #143

Open ibevilinc opened 1 year ago

ibevilinc commented 1 year ago

Describe the bug nexusIqScan task is running into an XML exception that started to occur after upgrading from gradle 8.3 to 8.4

To Reproduce Steps to reproduce the behavior:

  1. Run nexusIqScan
  2. See attached error log nexusIqScanException.log

Expected behavior Except to be able to run nexusIqScan successfully regardless of gradle version

Desktop (please complete the following information):

ibevilinc commented 1 year ago

Probably related to this note that I've missed from the gradle release notes: https://docs.gradle.org/8.4/userguide/upgrading_version_8.html#xml_parsing_now_requires_recent_parsers

shaikhu commented 1 year ago

@guillermo-varela The integrations tests go up to version 7.4. Is gradle 8 supported?

guillermo-varela commented 6 months ago

The integrations tests go up to version 7.4. Is gradle 8 supported?

The plugin seems to work with gradle 8, but when testing an Android project I get an error related to Java 11 and particularly the Android Gradle Plugin (AGP) seems to require Java 17: https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes?hl=en#jdk-17-agp

So right now we'd need extra setup to run those tests using a different JDK, although we do have https://github.com/sonatype-nexus-community/scan-gradle-plugin/issues/146 where we could bump up among other stuff, the Java version.