Hi, when I try to build docker image using gradlew bootBuildImage I get error regarding long file names. As I use Kotlin I have a lot of long names like this, so renaming it is not an option.
Caused by: java.lang.RuntimeException: file name 'BOOT-INF/classes/tld/whateva/myproduct/manager/StructureManager$sortChildrenByOrder$$inlined$sortBy$1.class' is too long ( > 100 bytes)
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.handleLongName(TarArchiveOutputStream.java:683)
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:358)
at org.springframework.boot.buildpack.platform.io.ZipFileTarArchive.copy(ZipFileTarArchive.java:76)
at org.springframework.boot.buildpack.platform.io.ZipFileTarArchive.writeTo(ZipFileTarArchive.java:68)
Have no idea what would consequences would be, but
TarArchiveOutputStream stream = new TarArchiveOutputStream(...)
stream.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX)
could fix this issue.