Skip to content

Commit

Permalink
Put classpath in main jar manifest
Browse files Browse the repository at this point in the history
We encounter issues launching nouveau on Windows as it cAnnoT
haNdle LoNG LiNEs iN ScripTs. Instead we list the dependency
jars in the manifest and only need to include one jar in the
classpath.
  • Loading branch information
rnewson authored and big-r81 committed Jul 31, 2024
1 parent 7a1b7ba commit 4a297c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nouveau/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -82,3 +86,8 @@ tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}


startScripts {
classpath = files(jar.archiveFileName)
}

0 comments on commit 4a297c2

Please sign in to comment.