Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build using the ByteBuddy integration on Spring Boot 3 / Java 17 #195

Open
vasler opened this issue Sep 4, 2023 · 1 comment
Assignees
Labels
lifecycle:waiting-for-feedback Feedback from the original reporter(s) required

Comments

@vasler
Copy link

vasler commented Sep 4, 2023

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()
}

@odrotbohm
Copy link
Member

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.

@odrotbohm odrotbohm added the lifecycle:waiting-for-feedback Feedback from the original reporter(s) required label Nov 8, 2023
@odrotbohm odrotbohm self-assigned this Nov 8, 2023
@odrotbohm odrotbohm changed the title Spring Boot 3 / Java 17 Error during build using the ByteBuddy integration on Spring Boot 3 / Java 17 Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle:waiting-for-feedback Feedback from the original reporter(s) required
Projects
None yet
Development

No branches or pull requests

2 participants