From 9dfa1982fce802169e3c67a7eadf8e48f4eee35a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 6 Oct 2023 23:31:04 +0200 Subject: [PATCH] fix(RequirementsCommand): Account for new scanner constructors This is a fixup for dd70b72. Signed-off-by: Sebastian Schuberth --- .../requirements/src/main/kotlin/RequirementsCommand.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/commands/requirements/src/main/kotlin/RequirementsCommand.kt b/plugins/commands/requirements/src/main/kotlin/RequirementsCommand.kt index 293d82ef75c65..722b7ddda1e0b 100644 --- a/plugins/commands/requirements/src/main/kotlin/RequirementsCommand.kt +++ b/plugins/commands/requirements/src/main/kotlin/RequirementsCommand.kt @@ -31,7 +31,6 @@ import org.ossreviewtoolkit.analyzer.PackageManager import org.ossreviewtoolkit.downloader.VersionControlSystem import org.ossreviewtoolkit.model.config.AnalyzerConfiguration import org.ossreviewtoolkit.model.config.RepositoryConfiguration -import org.ossreviewtoolkit.model.config.ScannerConfiguration import org.ossreviewtoolkit.plugins.commands.api.OrtCommand import org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper import org.ossreviewtoolkit.utils.common.CommandLineTool @@ -91,8 +90,8 @@ class RequirementsCommand : OrtCommand( logger.debug { "$it is a $category." } it.getDeclaredConstructor( String::class.java, - ScannerConfiguration::class.java - ).newInstance("", ScannerConfiguration()) + Map::class.java + ).newInstance("", emptyMap()) } VersionControlSystem::class.java.isAssignableFrom(it) -> {