Remove lock files
This commit is contained in:
parent
32e21491c7
commit
dd2dc9e380
5 changed files with 2 additions and 233 deletions
|
@ -8,15 +8,4 @@ dependencies {
|
||||||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
|
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
|
||||||
implementation("org.jetbrains.kotlinx:kover-gradle-plugin:0.7.3")
|
implementation("org.jetbrains.kotlinx:kover-gradle-plugin:0.7.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencyLocking {
|
|
||||||
lockMode.set(LockMode.STRICT)
|
|
||||||
}
|
|
||||||
|
|
||||||
configurations {
|
|
||||||
// only lock compile & runtime to prevent error:
|
|
||||||
// Locking strict mode: Configuration ':buildSrc:testCompileClasspath' is locked but does not have lock state.
|
|
||||||
compileClasspath { resolutionStrategy.activateDependencyLocking() }
|
|
||||||
runtimeClasspath { resolutionStrategy.activateDependencyLocking() }
|
|
||||||
}
|
|
|
@ -15,22 +15,4 @@ tasks.withType<AbstractArchiveTask>().configureEach {
|
||||||
// https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
|
// https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
|
||||||
isPreserveFileTimestamps = false
|
isPreserveFileTimestamps = false
|
||||||
isReproducibleFileOrder = true
|
isReproducibleFileOrder = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencyLocking {
|
|
||||||
lockMode.set(LockMode.STRICT)
|
|
||||||
lockAllConfigurations()
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register("resolveAndLockAllDependencies") {
|
|
||||||
// https://docs.gradle.org/current/userguide/dependency_locking.html#ex-resolving-all-configurations
|
|
||||||
group = "dependencies"
|
|
||||||
notCompatibleWithConfigurationCache("Filters configurations at execution time")
|
|
||||||
val resolvableConfigurations = configurations.matching { it.isCanBeResolved }
|
|
||||||
doFirst {
|
|
||||||
require(gradle.startParameter.isWriteDependencyLocks) { "$path must be run from the command line with the `--write-locks` flag" }
|
|
||||||
}
|
|
||||||
doLast {
|
|
||||||
resolvableConfigurations.forEach { it.resolve() }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
# This is a Gradle generated file for dependency locking.
|
|
||||||
# Manual edits can break the build and are not advised.
|
|
||||||
# This file is expected to be part of source control.
|
|
||||||
org.freemarker:freemarker:2.3.32=koverJvmReporter
|
|
||||||
org.jetbrains.intellij.deps:coverage-report:1.0.21=koverJvmReporter
|
|
||||||
org.jetbrains.intellij.deps:intellij-coverage-agent:1.0.724=koverJvmAgent,koverJvmReporter
|
|
||||||
org.jetbrains.intellij.deps:intellij-coverage-reporter:1.0.724=koverJvmReporter
|
|
||||||
org.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-daemon-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-script-runtime:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-stdlib-common:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains.kotlin:kotlin-stdlib:1.9.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains:annotations:13.0=kotlinKlibCommonizerClasspath
|
|
||||||
org.jetbrains:annotations:16.0.2=koverJvmReporter
|
|
||||||
empty=koverExternalArtifacts
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue