Fix #927: Use a macro to automatically depend on right artifact
Fix #944: Test javalibEx also in fullOptStage
Merge pull request #946 from gzm0/auto-dependency

Fix #927: Use a macro to automatically depend on right artifact
Merge pull request #948 from gzm0/fullopt-for-javalib-ex

Fix #944: Test javalibEx also in fullOptStage