Skip to content

Commit 1830112

Browse files
committed
build/qg-xxx: управление версиями зависимостей переведено на использование platform
Почему-то при переходе на Kotlin 2.1.21 сборка с предыдущей версией управления версиями отвалилась с кучей ошибок в духе: > Failed to transform classgraph-4.8.172.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for BuildToolsApiClasspathEntrySnapshotTransform: /home/azhidkov/.gradle/caches/modules-2/files-2.1/io.github.classgraph/classgraph/4.8.172/22b1275cab4b9cc93e26290ce1887f1ab07600b3/classgraph-4.8.172.jar. > org/jetbrains/kotlin/incremental/classpathDiff/ClasspathEntrySnapshotter$Settings Переход на platform решил эту проблему
1 parent dd753cd commit 1830112

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

e2e-tests/build.gradle.kts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
21
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
32

43
plugins {
54
alias(libs.plugins.kotlin)
6-
alias(libs.plugins.spring.dependencyManagement)
7-
// см. https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#managing-dependencies.dependency-management-plugin.using-in-isolation
8-
alias(libs.plugins.spring.boot) apply false
9-
}
10-
11-
the<DependencyManagementExtension>().apply {
12-
imports {
13-
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
14-
}
155
}
166

177
group = "pro.qyoga.e2e-tests"
@@ -28,6 +18,8 @@ repositories {
2818
}
2919

3020
dependencies {
21+
implementation(platform("org.springframework.boot:spring-boot-dependencies:${libs.versions.springBoot.get()}"))
22+
3123
testImplementation(kotlin("reflect"))
3224
testImplementation(project(":app"))
3325
testImplementation(testFixtures(project(":app")))

0 commit comments

Comments
 (0)