I’m trying to move my projects from Ant/Ivy to Gradle (https://github.com/AndreasFagschlunger/O2Xfs). In some projects I also use JNI, so I take advantage of the native software plugins.
Now the point, I have a hard-coded library name “at.o2xfs.win32.dll”. When I set baseName property to this value:
components { main(NativeLibrarySpec) { baseName = 'at.o2xfs.win32'
The output file is “at.o2xfs.dll” and not “at.o2xfs.win32.dll” as expected, so win32 gets truncated. It seems gradle thinks I added a file extension and overwrites it. The workaround is simple to add a trailing dot. But I consider it a Bug, because it is unexpected behavior.
Best regards,
Andreas Fagschlunger