Open vasler opened 1 year ago
I am trying to build a Spring Boot 3 / Java 17 project with jmolecules-ddd and Byte Buddy integration and during the build I get the following error:
Execution failed for task ':byteBuddy'.
java.util.zip.ZipException: zip END header not found
Gradle:
buildscript { repositories { mavenCentral() } dependencies { classpath platform('org.jmolecules:jmolecules-bom:2023.1.0') classpath 'org.jmolecules.integrations:jmolecules-bytebuddy' } } plugins { id 'java' id 'org.springframework.boot' version '3.1.3' id 'io.spring.dependency-management' version '1.1.3' id "net.bytebuddy.byte-buddy-gradle-plugin" version '1.14.7' } group = 'com.example' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = '17' } configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { ... } byteBuddy { transformation{ // Needs to be declared explicitly plugin = org.jmolecules.bytebuddy.JMoleculesPlugin } } tasks.named('test') { useJUnitPlatform() }
Did you check you didn't accidentally pull a corrupted JAR file into your Gradle cache? I doubt its the jMolecules JARs in Central as we have a lot of projects working on that stack.
I am trying to build a Spring Boot 3 / Java 17 project with jmolecules-ddd and Byte Buddy integration and during the build I get the following error:
Execution failed for task ':byteBuddy'.
Gradle: