If you configure a custom configuration for the bootRepackage task and use the module layout, the resulting jar will be empty. When a custom configuration is used all of the libraries have a scope of LibraryScope.CUSTOM and the Module layout only provides a destination for compile and runtime scoped dependencies.