Carter
11/30/2022, 11:52 AMCarter
11/30/2022, 11:52 AM* What went wrong:
558
> Task :assertion-lib:compileCommonMainKotlinMetadata
559
Execution failed for task ':assertion-lib:compileKotlinJvm'.
560
> Could not resolve all files for configuration ':assertion-lib:detachedConfiguration1'.
561
> Failed to transform kotlin-stdlib-jdk8-1.7.21.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
562
> Execution failed for ClasspathEntrySnapshotTransform: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.7.21/5407c3593c58860cec5ee3f66c468396b42f4c2b/kotlin-stdlib-jdk8-1.7.21.jar.
563
> 'byte[] org.jetbrains.kotlin.incremental.storage.ExternalizersKt.toByteArray(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.lang.Object)'
564
> Failed to transform kotlin-stdlib-jdk7-1.7.21.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
565
> Execution failed for ClasspathEntrySnapshotTransform: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.7.21/a0ba09615c2213d580315e234b3febfea25b757e/kotlin-stdlib-jdk7-1.7.21.jar.
566
> 'byte[] org.jetbrains.kotlin.incremental.storage.ExternalizersKt.toByteArray(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.lang.Object)'
567
> Failed to transform kotlin-stdlib-1.7.21.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
568
> Execution failed for ClasspathEntrySnapshotTransform: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.21/1a2eaf898a0dda83037034b10a42053cf8a7caf8/kotlin-stdlib-1.7.21.jar.
569
> 'byte[] org.jetbrains.kotlin.incremental.storage.ExternalizersKt.toByteArray(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.lang.Object)'
570
> Failed to transform annotations-13.0.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
571
> Execution failed for ClasspathEntrySnapshotTransform: /home/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar.
572
> 'void org.jetbrains.kotlin.incremental.storage.ExternalizersKt.saveToFile(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.io.File, java.lang.Object)'
tapchicoma
11/30/2022, 12:02 PMtapchicoma
11/30/2022, 12:02 PMChris Lee
11/30/2022, 1:44 PMJosh Eldridge
11/30/2022, 4:39 PMChris Lee
11/30/2022, 4:40 PMJosh Eldridge
11/30/2022, 4:40 PMCarter
11/30/2022, 8:59 PMplugins {
id("com.gradle.enterprise") version("3.11.4")
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
termsOfServiceAgree = "yes"
}
}
And then I re-ran my Gradle task locally with --write-locks
When I run it again without --write-locks
then I end up with an error:
Could not resolve all files for configuration 'classpath'.
169
> Did not resolve 'com.gradle:gradle-enterprise-gradle-plugin:3.11.4' which is part of the dependency lock state
170
> Did not resolve 'com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.11.4' which is part of the dependency lock state
Having dependency locking turned on is part of what triggers this issue.
Is there another way to disable the TOS agreement on CI without applying the Gradle enterprise plugin?Chris Lee
11/30/2022, 9:03 PMI do include the Kotlin 1.7.21 plugin in the build convention dependenciesIf the Kotlin plugin is mixed with
kotlin-dsl
that can cause problems that manifest this way.Carter
11/30/2022, 9:05 PMChris Lee
11/30/2022, 9:05 PMCarter
11/30/2022, 9:05 PMChris Lee
11/30/2022, 9:06 PMExecution failed for ClasspathEntrySnapshotTransform
is interesting, but there’s nothing in the output that says why it failed. Hoping the stack trace will enlighten us.Chris Lee
11/30/2022, 9:14 PMgradle.properties
would be helpful (from the project directory and your home directory). If CI has additional properties that would be interesting. And the command use to run Gradle in CI, including any properties that are set (-Pxxx=yyy).tapchicoma
12/01/2022, 9:57 AMCarter
12/01/2022, 5:05 PMCarter
12/01/2022, 5:06 PMCarter
12/01/2022, 8:37 PM