diff --git a/nouveau/build.gradle b/nouveau/build.gradle index 2095a71c2f..bcca23b3f6 100644 --- a/nouveau/build.gradle +++ b/nouveau/build.gradle @@ -49,7 +49,11 @@ java { } jar { - manifest.attributes('Multi-Release': 'true') + manifest { + attributes( + 'Multi-Release': 'true', + "Class-Path": configurations.runtimeClasspath.collect { it.getName() }.join(' ')) + } } spotless { @@ -82,3 +86,8 @@ tasks.withType(AbstractArchiveTask) { preserveFileTimestamps = false reproducibleFileOrder = true } + + +startScripts { + classpath = files(jar.archiveFileName) +}