Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Mar 16, 2024
1 parent bcbc7a8 commit 8e0e3a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ subprojects {
it.options.encoding = "UTF-8"
}

tasks.withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar).configureEach {
// https://github.com/johnrengelman/shadow/issues/882#issuecomment-1715703146
// Defer the resolution of 'runtimeClasspath'. This is an issue in the shadow
// plugin that it automatically accesses the files in 'runtimeClasspath' while
// Gradle is building the task graph. The three lines below work around that.
inputs.files(project.configurations.runtimeClasspath)
configurations = Collections.emptyList()

doFirst {
configurations = Collections.singletonList(project.configurations.runtimeClasspath)
}
}

javadoc {
options.addBooleanOption('html5', true)

Expand Down

0 comments on commit 8e0e3a5

Please sign in to comment.