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

Start splitting :utils:core #4647

Merged
merged 5 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion analyzer/src/funTest/kotlin/managers/CocoaPodsFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import java.time.Instant

import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.model.ProjectAnalyzerResult
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
mnonnenmacher marked this conversation as resolved.
Show resolved Hide resolved
import org.ossreviewtoolkit.utils.core.normalizeVcsUrl
import org.ossreviewtoolkit.utils.test.DEFAULT_ANALYZER_CONFIGURATION
import org.ossreviewtoolkit.utils.test.DEFAULT_REPOSITORY_CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/funTest/kotlin/managers/GradleFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import java.io.File

import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.downloader.vcs.Git
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.normalizeVcsUrl
import org.ossreviewtoolkit.utils.test.DEFAULT_ANALYZER_CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/funTest/kotlin/managers/MavenFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import io.kotest.matchers.shouldBe
import java.io.File

import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.normalizeVcsUrl
import org.ossreviewtoolkit.utils.core.safeDeleteRecursively
import org.ossreviewtoolkit.utils.test.DEFAULT_ANALYZER_CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/funTest/kotlin/managers/PipFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import io.kotest.matchers.shouldBe
import java.io.File

import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.normalizeVcsUrl
import org.ossreviewtoolkit.utils.test.DEFAULT_ANALYZER_CONFIGURATION
import org.ossreviewtoolkit.utils.test.DEFAULT_REPOSITORY_CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/funTest/kotlin/managers/StackFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import io.kotest.matchers.shouldBe

import java.io.File

import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.test.DEFAULT_ANALYZER_CONFIGURATION
import org.ossreviewtoolkit.utils.test.DEFAULT_REPOSITORY_CONFIGURATION
import org.ossreviewtoolkit.utils.test.USER_DIR
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Bower.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import org.ossreviewtoolkit.model.VcsType
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.jsonMapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.fieldNamesOrEmpty
import org.ossreviewtoolkit.utils.core.fieldsOrEmpty
import org.ossreviewtoolkit.utils.core.stashDirectories
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Bundler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.model.yamlMapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.HttpDownloadError
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.log
import org.ossreviewtoolkit.utils.core.perf
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Composer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.model.orEmpty
import org.ossreviewtoolkit.model.readJsonFile
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.fieldNamesOrEmpty
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Conan.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.jsonMapper
import org.ossreviewtoolkit.model.yamlMapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.createOrtTempFile
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/GoMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import org.ossreviewtoolkit.model.VcsType
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.orEmpty
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.log
import org.ossreviewtoolkit.utils.core.stashDirectories
import org.ossreviewtoolkit.utils.core.withoutSuffix
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Gradle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.model.utils.DependencyGraphBuilder
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.log
import org.ossreviewtoolkit.utils.core.temporaryProperties

Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Npm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ import org.ossreviewtoolkit.model.orEmpty
import org.ossreviewtoolkit.model.readJsonFile
import org.ossreviewtoolkit.model.readValue
import org.ossreviewtoolkit.model.utils.DependencyGraphBuilder
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.fieldNamesOrEmpty
import org.ossreviewtoolkit.utils.core.installAuthenticatorAndProxySelector
import org.ossreviewtoolkit.utils.core.isSymbolicLink
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Pip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ import org.ossreviewtoolkit.model.VcsInfo
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.jsonMapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.getPathFromEnvironment
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Pub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.model.yamlMapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.getPathFromEnvironment
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Sbt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import org.ossreviewtoolkit.analyzer.AbstractPackageManagerFactory
import org.ossreviewtoolkit.analyzer.PackageManager
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.getCommonFileParent
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/Yarn.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.ossreviewtoolkit.analyzer.managers.utils.hasYarnLockFile
import org.ossreviewtoolkit.analyzer.managers.utils.mapDefinitionFilesForYarn
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os

/**
* The [Yarn](https://www.yarnpkg.com/) package manager for JavaScript.
Expand Down
2 changes: 1 addition & 1 deletion cli/src/main/kotlin/OrtMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ import org.apache.logging.log4j.core.config.Configurator
import org.ossreviewtoolkit.cli.commands.*
import org.ossreviewtoolkit.model.config.LicenseFilenamePatterns
import org.ossreviewtoolkit.model.config.OrtConfiguration
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.Environment
import org.ossreviewtoolkit.utils.core.ORT_CONFIG_DIR_ENV_NAME
import org.ossreviewtoolkit.utils.core.ORT_CONFIG_FILENAME
import org.ossreviewtoolkit.utils.core.ORT_DATA_DIR_ENV_NAME
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.PERFORMANCE
import org.ossreviewtoolkit.utils.core.expandTilde
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion downloader/src/main/kotlin/vcs/Git.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.downloader.WorkingTree
import org.ossreviewtoolkit.model.VcsInfo
import org.ossreviewtoolkit.model.VcsType
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.installAuthenticatorAndProxySelector
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion downloader/src/main/kotlin/vcs/GitRepo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import org.ossreviewtoolkit.downloader.WorkingTree
import org.ossreviewtoolkit.model.VcsInfo
import org.ossreviewtoolkit.model.VcsType
import org.ossreviewtoolkit.model.readValue
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.getPathFromEnvironment
Expand Down
1 change: 1 addition & 0 deletions evaluator/src/main/kotlin/Evaluator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Evaluator(
import org.ossreviewtoolkit.model.config.*
import org.ossreviewtoolkit.model.licenses.*
import org.ossreviewtoolkit.model.utils.*
import org.ossreviewtoolkit.utils.common.*
import org.ossreviewtoolkit.utils.core.*
import org.ossreviewtoolkit.utils.spdx.*

Expand Down
2 changes: 1 addition & 1 deletion model/src/main/kotlin/ScanSummary.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import java.util.SortedSet

import org.ossreviewtoolkit.model.config.LicenseFilenamePatterns
import org.ossreviewtoolkit.model.utils.RootLicenseMatcher
import org.ossreviewtoolkit.utils.core.FileMatcher
import org.ossreviewtoolkit.utils.common.FileMatcher
import org.ossreviewtoolkit.utils.spdx.SpdxExpression

/**
Expand Down
2 changes: 1 addition & 1 deletion model/src/main/kotlin/utils/FileArchiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import kotlin.time.measureTime
import kotlin.time.measureTimedValue

import org.ossreviewtoolkit.model.KnownProvenance
import org.ossreviewtoolkit.utils.core.FileMatcher
import org.ossreviewtoolkit.utils.common.FileMatcher
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion model/src/main/kotlin/utils/RootLicenseMatcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.io.File

import org.ossreviewtoolkit.model.LicenseFinding
import org.ossreviewtoolkit.model.config.LicenseFilenamePatterns
import org.ossreviewtoolkit.utils.core.FileMatcher
import org.ossreviewtoolkit.utils.common.FileMatcher
import org.ossreviewtoolkit.utils.core.getAllAncestorDirectories

/**
Expand Down
1 change: 1 addition & 0 deletions notifier/src/main/kotlin/Notifier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Notifier(ortResult: OrtResult = OrtResult.EMPTY, config: NotifierConfigura
import org.ossreviewtoolkit.model.licenses.*
import org.ossreviewtoolkit.model.utils.*
import org.ossreviewtoolkit.notifier.modules.*
import org.ossreviewtoolkit.utils.common.*
import org.ossreviewtoolkit.utils.core.*

import java.util.*
Expand Down
1 change: 1 addition & 0 deletions reporter/src/main/kotlin/HowToFixTextProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private class HowToFixScriptRunner(ortResult: OrtResult) : ScriptRunner() {
import org.ossreviewtoolkit.model.licenses.*
import org.ossreviewtoolkit.model.utils.*
import org.ossreviewtoolkit.reporter.HowToFixTextProvider
import org.ossreviewtoolkit.utils.common.*
import org.ossreviewtoolkit.utils.core.*

""".trimIndent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import org.ossreviewtoolkit.model.RemoteArtifact
import org.ossreviewtoolkit.model.RepositoryProvenance
import org.ossreviewtoolkit.model.VcsInfo
import org.ossreviewtoolkit.model.VcsType
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.test.containExactly

class DefaultNestedProvenanceResolverFunTest : WordSpec() {
Expand Down
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/LocalScanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ import org.ossreviewtoolkit.model.config.createFileArchiver
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.scanner.storages.FileBasedStorage
import org.ossreviewtoolkit.scanner.storages.PostgresStorage
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.CommandLineTool
import org.ossreviewtoolkit.utils.core.Environment
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.collectMessagesAsString
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.fileSystemEncode
Expand Down
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/scanners/Askalono.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ import org.ossreviewtoolkit.scanner.AbstractScannerFactory
import org.ossreviewtoolkit.scanner.LocalScanner
import org.ossreviewtoolkit.scanner.ScanException
import org.ossreviewtoolkit.scanner.experimental.LocalScannerWrapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/scanners/BoyterLc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ import org.ossreviewtoolkit.scanner.AbstractScannerFactory
import org.ossreviewtoolkit.scanner.LocalScanner
import org.ossreviewtoolkit.scanner.ScanException
import org.ossreviewtoolkit.scanner.experimental.LocalScannerWrapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/scanners/Licensee.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import org.ossreviewtoolkit.scanner.AbstractScannerFactory
import org.ossreviewtoolkit.scanner.LocalScanner
import org.ossreviewtoolkit.scanner.ScanException
import org.ossreviewtoolkit.scanner.experimental.LocalScannerWrapper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.log
Expand Down
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/scanners/scancode/ScanCode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ import org.ossreviewtoolkit.scanner.LocalScanner
import org.ossreviewtoolkit.scanner.ScanException
import org.ossreviewtoolkit.scanner.ScanResultsStorage
import org.ossreviewtoolkit.scanner.experimental.LocalScannerWrapper
import org.ossreviewtoolkit.utils.common.Os
import org.ossreviewtoolkit.utils.core.ORT_NAME
import org.ossreviewtoolkit.utils.core.OkHttpClientHelper
import org.ossreviewtoolkit.utils.core.Os
import org.ossreviewtoolkit.utils.core.ProcessCapture
import org.ossreviewtoolkit.utils.core.createOrtTempDir
import org.ossreviewtoolkit.utils.core.isTrue
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ include(":notifier")
include(":reporter")
include(":reporter-web-app")
include(":scanner")
include(":utils:common")
include(":utils:core")
include(":utils:spdx")
include(":utils:test")
Expand Down
29 changes: 29 additions & 0 deletions utils/common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (C) 2021 Bosch.IO GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
* License-Filename: LICENSE
*/

val springCoreVersion: String by project

plugins {
// Apply core plugins.
`java-library`
}

dependencies {
implementation("org.springframework:spring-core:$springCoreVersion")
}
mnonnenmacher marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License-Filename: LICENSE
*/

package org.ossreviewtoolkit.utils.core
package org.ossreviewtoolkit.utils.common

import org.springframework.util.AntPathMatcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License-Filename: LICENSE
*/

package org.ossreviewtoolkit.utils.core
package org.ossreviewtoolkit.utils.common

import java.io.File
import java.lang.IllegalArgumentException
Expand Down Expand Up @@ -82,7 +82,6 @@ object Os {
it.isNotBlank()
} ?: throw IllegalArgumentException("Unable to determine a user home directory.")

log.warn { "Fixing up the user home directory from '$userHome' to '$fallbackUserHome'." }
System.setProperty("user.home", fallbackUserHome)

return fallbackUserHome
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License-Filename: LICENSE
*/

package org.ossreviewtoolkit.utils.core
package org.ossreviewtoolkit.utils.common

import io.kotest.core.spec.style.WordSpec
import io.kotest.matchers.shouldBe
Expand Down
Loading