Skip to content

Commit

Permalink
Merge pull request #5157 from apache/nouveau-shorter-classpath
Browse files Browse the repository at this point in the history
Put classpath in main jar manifest
  • Loading branch information
rnewson authored Jul 31, 2024
2 parents 7a1b7ba + 4a297c2 commit a2241d3
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 a2241d3

Please sign in to comment.