Search code examples
javakotlingradleintellij-ideadependencies

I am using community edition IntelliJ and my build.gradle.kts file is generating an error - I can't tell what's wrong with it


dependencies {
    
   testImplementation(platform("org.junit:junit-bom:5.9.1"))
    
   testImplementation("org.junit.jupiter:junit-jupiter")
    
   compileOnly("com.ibm.maximo:asset-management:7.6.0.0")
    
   compileOnly("com.ibm.maximo:asset-management-webclient:7.6.0.0")
    
   compileOnly("org.apache.httpcomponents:httpclient:4.5.2")
    
   compileOnly("javax.j2ee:j2ee:1.4")
    
   //implementation(files("C:/Users/jkish/eclipseworkspace/bia/lib/build/httpclient.jar"))
}

The error is:

enter image description here


Solution

  • If you look at the POM of javax.j2ee:j2ee:1.4 at https://repo1.maven.org/maven2/javax/j2ee/j2ee/1.4/j2ee-1.4.pom you see that it says group is javax which is inconsistent with the group used to resolve it, i.e. javax.j2ee, and that is what Gradle complains about and aborts with failure. This artifact is simply pushed in a bad, broken state.