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 21 forks source link

IQ Server Version #125

Closed cscrbuildhp closed 2 years ago

cscrbuildhp commented 2 years ago

How do we know which version of IQ server the plug-in supports? We currently are running 142 but get the below error when running in our Android apps now, *** What went wrong: Execution failed for task ':nexusIQScan'.

Could not scan the project: Could not validate the IQ Server version.**

User was admin for IQ

github-actions[bot] commented 2 years ago

Hi!

First of all, thank you for opening your first issue. Elementary, we appreciate all feedback that helps us continue improving this plugin.

As this is a community project we can't commit to official due dates for reviews and developing, but we're definitely committed to delivering services, integrations and plugins of top quality.

So please be patient, we will review your issue and get back to you as soon as we can!

Regards, Sherlock Trunks 🐘

guillermo-varela commented 2 years ago

Hi @cscrbuildhp

IQ Server 142 should work fine.

Could you please share the full stacktrace? The message might be missleading as I have seen it even when the issue is due to connectivity.

To generate the full stacktrace, please run: ./gradlew nexusIQScan --stacktrace

guillermo-varela commented 2 years ago

Issue https://github.com/sonatype-nexus-community/scan-gradle-plugin/issues/126 and PR https://github.com/sonatype-nexus-community/scan-gradle-plugin/pull/127 have been created to improve the error message.

guillermo-varela commented 2 years ago

Hi @cscrbuildhp

Version 2.5.1 of this plugin improves the error message.

You can try using that version or still run ./gradlew nexusIQScan --stacktrace to see a more detailed reason on why the plugin is not able to access your IQ Server instance.

cscrbuildhp commented 2 years ago

Hi @cscrbuildhp

Version 2.5.1 of this plugin improves the error message.

You can try using that version or still run ./gradlew nexusIQScan --stacktrace to see a more detailed reason on why the plugin is not able to access your IQ Server instance.

That did the trick, it was the organization ID was public name vice the ID itself. If developers integrate this they tend not to read the nuances of Org ID variable, 1) it must be the ID not the name, and 2) only used if application does not already exist.

Thanks for your help