1.4.9-alpha01 depends on a kotlin-annotation-processing-embeddable snapshot
ZacSweers opened this issue · comments
:redacted-compiler-plugin:test: Could not find org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.7.0-dev-3025.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.0-dev-3025/kotlin-annotation-processing-embeddable-1.7.0-dev-3025.pom
- https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.0-dev-3025/kotlin-annotation-processing-embeddable-1.7.0-dev-3025.pom
Required by:
project :redacted-compiler-plugin > com.github.tschuchortdev:kotlin-compile-testing:1.4.9-alpha01
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
This should depend on releases only in maven central IMO
Yes, you are completely right. Unfortunately, pre-releases of Kotlin compiler and KSP are slim pickings, so oftentimes it can not be avoided to depend on snapshots in KCT pre-releases. Really KCT pre-releases should never be on maven central in the first place. I only published them there as a hack so I don't have to modify the release script and set-up another maven repository.
so oftentimes it can not be avoided to depend on snapshots in KCT pre-releases
You should really just line up with Kotlin's maven central prereleases only (milestones, betas, RCs). This is what every other kotlinc tool I know of does
the master branch is also currently failing for the same reason
Execution failed for task ':core:kaptGenerateStubsKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':core:kaptGenerateStubsKotlin'
> Could not resolve all files for configuration ':core:compileClasspath'.
> Could not find org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.7.10-331.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
- https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
- https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
- https://www.jetbrains.com/intellij-repository/snapshots/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
- https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/org/jetbrains/kotlin/kotlin-annotation-processing-embeddable/1.7.10-331/kotlin-annotation-processing-embeddable-1.7.10-331.pom
Required by:
project :core