Closed madneal closed 2 years ago
This is specific when targeting GO
(GoLand), see https://github.com/JetBrains/gradle-intellij-plugin/issues/477#issuecomment-845022914 for workaround
@YannCebron add the configuration
// Configure project's dependencies
repositories {
mavenCentral()
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
}
dependencies {
testImplementation("com.jetbrains.intellij.go:go-test-framework:GOLAND-212-SNAPSHOT") {
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
exclude("org.jetbrains.kotlin", "kotlin-reflect")
exclude("com.jetbrains.rd", "rd-core")
exclude("com.jetbrains.rd", "rd-swing")
exclude("com.jetbrains.rd", "rd-framework")
}
}
Execution failed for task ':compileTestKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':compileTestKotlin'
> Could not resolve all files for configuration ':testCompileClasspath'.
> Could not find com.jetbrains.intellij.go:go-test-framework:GOLAND-212-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/jetbrains/intellij/go/go-test-framework/GOLAND-212-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/jetbrains/intellij/go/go-test-framework/GOLAND-212-SNAPSHOT/go-test-framework-GOLAND-212-SNAPSHOT.pom
- https://cache-redirector.jetbrains.com/intellij-dependencies/com/jetbrains/intellij/go/go-test-framework/GOLAND-212-SNAPSHOT/maven-metadata.xml
- https://cache-redirector.jetbrains.com/intellij-dependencies/com/jetbrains/intellij/go/go-test-framework/GOLAND-212-SNAPSHOT/go-test-framework-GOLAND-212-SNAPSHOT.pom
You must adapt the 212-SNAPSHOT
version to your target platform
My target version is 2022.1
. I have tried GOLAND-221-SNAPSHOT
and GOLAND-221
. Both does not work. Is there any place to see the avaiable versions?
GOLAND-221.5080.224
does not work
the version identifier is com.jetbrains.intellij.go:go-test-framework:221.5080.224
Execution failed for task ':compileTestKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':compileTestKotlin'
> Could not resolve all files for configuration ':testCompileClasspath'.
> Could not find com.jetbrains.intellij.go:go-test-framework:221.5080.224.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/jetbrains/intellij/go/go-test-framework/221.5080.224/go-test-framework-221.5080.224.pom
- https://cache-redirector.jetbrains.com/intellij-dependencies/com/jetbrains/intellij/go/go-test-framework/221.5080.224/go-test-framework-221.5080.224.pom
-
it seems there are some unwanted transitive dependencies, please replace repositories
block with this
repositories {
mavenCentral()
maven("https://www.jetbrains.com/intellij-repository/releases")
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
maven("https://cache-redirector.jetbrains.com/download.jetbrains.com/teamcity-repository")
maven("https://cache-redirector.jetbrains.com/packages.jetbrains.team/maven/p/grazi/grazie-platform-public")
maven("https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/public/p/ktor/eap")
maven("https://cache-redirector.jetbrains.com/download-pgp-verifier")
}
It worked. Thanks a lot.
For the
Run test
taskhow to import the testFramework, I tried
alt+enter
, but could not to do auto import.Here is the
build.gradle.kts