Skip to content
Permalink
Browse files

Apply miscellaneous minor formatting fixes

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@here.com>
  • Loading branch information...
sschuberth committed Apr 24, 2019
1 parent 39e9778 commit 3c37f950ccb63d2b48f30beba998f8445de1e68d
@@ -112,8 +112,8 @@ class Gradle(
}

override fun findVersions(artifact: Artifact) =
// Do not resolve versions of already locally available artifacts. This also ensures version resolution
// was done by Gradle.
// Do not resolve versions of already locally available artifacts. This also ensures version resolution
// was done by Gradle.
if (findArtifact(artifact)?.isFile == true) listOf(artifact.version) else emptyList()

override fun getRepository() = workspaceRepository
@@ -82,7 +82,7 @@ class Maven(
}

override fun findVersions(artifact: Artifact) =
// Avoid resolution of (SNAPSHOT) versions for local projects.
// Avoid resolution of (SNAPSHOT) versions for local projects.
localProjectBuildingResults[artifact.identifier()]?.let { listOf(artifact.version) } ?: emptyList()

override fun getRepository() = workspaceRepository
@@ -50,5 +50,5 @@ fun ProjectSettings.taskTriggers(block: TaskTriggersConfig.() -> Unit) =
fun ProjectSettings.runConfigurations(block: DefaultRunConfigurationContainer.() -> Unit) =
(this@runConfigurations as ExtensionAware).extensions.configure("runConfigurations", block)

inline fun <reified T: RunConfiguration> DefaultRunConfigurationContainer.defaults(noinline block: T.() -> Unit) =
inline fun <reified T : RunConfiguration> DefaultRunConfigurationContainer.defaults(noinline block: T.() -> Unit) =
defaults(T::class.java, block)
@@ -75,9 +75,9 @@ class Cvs : VersionControlSystem(), CommandLineTool {
override fun getRemoteUrl() = File(cvsDirectory, "Root").useLines { it.first() }

override fun getRevision() =
// CVS does not have the concept of a global revision, but each file has its own revision. As
// we just use the revision to uniquely identify the state of a working tree, simply create an
// artificial single revision based on the revisions of all files.
// CVS does not have the concept of a global revision, but each file has its own revision. As
// we just use the revision to uniquely identify the state of a working tree, simply create an
// artificial single revision based on the revisions of all files.
getFileRevisionsHash(getFileRevisions())

private fun getFileRevisions(): CvsFileRevisions {
@@ -126,7 +126,8 @@ class Mercurial : VersionControlSystem(), CommandLineTool {

if (MERCURIAL_SPARSE_EXTENSION in extensionsList) {
log.info { "Configuring Mercurial to do sparse checkout of path '${pkg.vcsProcessed.path}'." }
run(targetDir, "debugsparse", "-I", "${pkg.vcsProcessed.path}/**",
run(
targetDir, "debugsparse", "-I", "${pkg.vcsProcessed.path}/**",
*LICENSE_FILE_NAMES.flatMap { listOf("-I", it) }.toTypedArray()
)
}

0 comments on commit 3c37f95

Please sign in to comment.
You can’t perform that action at this time.