Open martinbonnin opened 3 years ago
Same here. I've tried to run it directly with the platform tools but this fails as well
script:
λ cat test.main.kts
#!/usr/bin/env kotlin
@file:Repository("https://repo.gradle.org/gradle/libs-releases-local/")
@file:DependsOn("net.mbonnin.kinta:kinta-lib:0.1.14")
execution attempt
λ kotlin test.main.kts
:: problems summary ::
:::: ERRORS
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
unknown resolver jcenter.bintray.com
I'd consider this problem an upstream platform issue. I think you could consider filing a platform bug under https://youtrack.jetbrains.com/issues/KT
FYI @ligee
I can move that issue on the Jetbrains Issue Tracker. Do you know if there's a specific component or something that could help the jetbrain team triaging the bug efficiently? Does the resolver has a name? I think org.eclipse.aether
is not managed by jetbrains right? So there's something on top of it?
They typically recategorize tickes very efficiently. Just submit it irrespective of kscript if possible to make clear that we think it's platform related. Feel welcome to add a reference to this thread.
I somewhat cannot reproduce with test.main.kts
and Kotlin 1.5.21
. I'll try to dig a bit more to see if I can make a reproducer using only platform components.
I bumped a weird case where dependencies failed to resolve while they should in theory be there. To reproduce the issue, create a
test.kts
file containing:The dependencies of
kinta-lib
are spread between mavenCentral and the gradleReleases repos and it looks like this is not supported:What's super weird is that adding mavenCentral explicitely fixes the issue:
Environment:
I always thought MavenCentral was included by default? Is there anything I'm missing?