Home > Software design >  Could not resolve: org.jetbrains.pty4j:pty4j:0.9.8
Could not resolve: org.jetbrains.pty4j:pty4j:0.9.8

Time:11-04

In my build.gradle file.

repositories {
maven {
url  "https://jetbrains.bintray.com/pty4j"
}
mavenCentral()

}

dependencies {

implementation group: 'org.jetbrains.pty4j', name: 'pty4j', version: '0.9.8'

}

If I build my project it comes like this

Could not resolve org.jetbrains.pty4j:pty4j:0.9.8.

Possible solution:
 - Declare repository providing the artifact, see the documentation at 
  https://docs.gradle.org/current/userguide/declaring_repositories.html

screen shot

How can I solve this error ?

CodePudding user response:

That particular artefact is not provided by MavenCentral() but rather by the Spring Release Repository. One useful trick to find out which repositories provide a given artefact is to seek your artefact here and pay attention to the repositories link provided.

You'll need then to change your Gradle config to something like:

repositories {
    mavenCentral()
    maven { url "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies" }
}
  • Related