Skip to content

Commit

Permalink
deps: update ort to v32
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and sschuberth committed Sep 13, 2024
1 parent 218f768 commit 3824012
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ log4jApi = "2.24.0"
log4jApiKotlin = "1.5.0"
logbackImpl = "1.5.8"
moleculeRuntime = "2.0.0"
ort = "30.0.0"
ort = "32.1.0"
richtext = "0.20.0"

[plugins]
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/model/OrtApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import org.ossreviewtoolkit.model.licenses.LicenseInfoResolver
import org.ossreviewtoolkit.model.licenses.ResolvedLicenseInfo
import org.ossreviewtoolkit.model.utils.DefaultResolutionProvider
import org.ossreviewtoolkit.model.utils.FileArchiver
import org.ossreviewtoolkit.model.utils.PackageConfigurationProvider
import org.ossreviewtoolkit.model.utils.ResolutionProvider
import org.ossreviewtoolkit.model.utils.createLicenseInfoResolver
import org.ossreviewtoolkit.plugins.packageconfigurationproviders.api.PackageConfigurationProvider
import org.ossreviewtoolkit.reporter.IssueStatistics
import org.ossreviewtoolkit.workbench.utils.getOrZero

Expand All @@ -40,7 +40,7 @@ class OrtApi(
private val fileArchiver: FileArchiver?,
private val licenseInfoProvider: LicenseInfoProvider,
private val licenseInfoResolver: LicenseInfoResolver,
private val packageConfigurationProvider: PackageConfigurationProvider,
private val packageConfigurationProvider: PackageConfigurationProvider?,
private val resolutionProvider: ResolutionProvider
) {
companion object {
Expand All @@ -49,7 +49,7 @@ class OrtApi(
val copyrightGarbage = CopyrightGarbage()
val config = OrtConfiguration()
val fileArchiver = config.scanner.archive.createFileArchiver()
val packageConfigurationProvider = PackageConfigurationProvider.EMPTY
val packageConfigurationProvider = null
val licenseInfoProvider = DefaultLicenseInfoProvider(result)

OrtApi(
Expand Down
7 changes: 4 additions & 3 deletions src/main/kotlin/model/OrtModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import org.ossreviewtoolkit.model.config.OrtConfiguration
import org.ossreviewtoolkit.model.config.createFileArchiver
import org.ossreviewtoolkit.model.licenses.DefaultLicenseInfoProvider
import org.ossreviewtoolkit.model.readValue
import org.ossreviewtoolkit.model.utils.CompositePackageConfigurationProvider
import org.ossreviewtoolkit.model.utils.DefaultResolutionProvider
import org.ossreviewtoolkit.model.utils.createLicenseInfoResolver
import org.ossreviewtoolkit.plugins.packageconfigurationproviders.api.CompositePackageConfigurationProvider
import org.ossreviewtoolkit.plugins.packageconfigurationproviders.api.SimplePackageConfigurationProvider
import org.ossreviewtoolkit.plugins.packageconfigurationproviders.dir.DirPackageConfigurationProvider
import org.ossreviewtoolkit.utils.ort.ORT_CONFIG_FILENAME
Expand Down Expand Up @@ -179,8 +179,9 @@ class OrtModel(val settings: StateFlow<WorkbenchSettings>) {
FileArchiverConfiguration().createFileArchiver()
}

val resolvedPackageConfigurationProvider =
SimplePackageConfigurationProvider(result.resolvedConfiguration.packageConfigurations.orEmpty())
val resolvedPackageConfigurationProvider = SimplePackageConfigurationProvider(
configurations = result.resolvedConfiguration.packageConfigurations.orEmpty()
)
val packageConfigurationsDir = configDir.resolve(ORT_PACKAGE_CONFIGURATIONS_DIRNAME)

val packageConfigurationProvider =
Expand Down

0 comments on commit 3824012

Please sign in to comment.