micronaut-projects / micronaut-gradle-plugin

A Gradle Plugin for Micronaut
Apache License 2.0
65 stars 43 forks source link

Failed build native docker image with multi project setup and use micronaut library plugin #991

Closed pelenthium closed 4 months ago

pelenthium commented 4 months ago

Expected Behavior

Build successful native docker imagea

Actual Behaviour

FAILURE: Build failed with an exception.

BUILD FAILED in 609ms

Steps To Reproduce

  1. create a multi-project setup and one of the sub-projects should use io.micronaut.library
  2. build native docker by ./gradle dockerBuildNative

Environment Information

jdk - 21 gradle - 8.5 micronaut - 4.3.8 kotlin - 1.9.23

Example Application

https://github.com/pelenthium/micronaut-multiproject-build-issue

Version

4.3.8

melix commented 4 months ago

This is actually a bug in Gradle. The workarounds are described in https://github.com/graalvm/native-build-tools/issues/572 and related Gradle issue : https://github.com/gradle/gradle/issues/17559