xmlunit: Gradle fails to resolve dependency net.bytebuddy:byte-buddy

The following build.gradle snippet

dependencies {
    testImplementation platform("org.junit:junit-bom:5.6.2")
    testImplementation 'org.junit.jupiter:junit-jupiter-api'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
    testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    testRuntimeOnly 'org.junit.platform:junit-platform-runner'
    
    testImplementation "org.assertj:assertj-core:3.16.1"
    testImplementation "org.xmlunit:xmlunit-core:2.7.0"
    testImplementation "org.xmlunit:xmlunit-assertj:2.7.0"
}

fails to resolve Byte Buddy with the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':server:compileTestJava'.
> Could not resolve all files for configuration ':server:testCompileClasspath'.
   > Could not find net.bytebuddy:byte-buddy:.
     Required by:
         project :server > org.xmlunit:xmlunit-assertj:2.7.0

Which version of Byte Buddy do I need to include?

assertj-core itself depends on Byte Buddy already but shades the dependency into it’s own jar.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve changed the scope and am just now publishing new SNAPSHOTs, would be good if you could give it a try.