Skip to content

Commit

Permalink
Fixes build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Nov 5, 2024
1 parent 832476f commit ac4c448
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 3 additions & 9 deletions partiql-ast/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ dependencies {
annotationProcessor(Deps.lombok)
}

tasks.shadowJar {
configurations = listOf(project.configurations.shadow.get())
}

// Workaround for https://github.com/johnrengelman/shadow/issues/651
components.withType(AdhocComponentWithVariants::class.java).forEach { c ->
c.withVariantsFromConfiguration(project.configurations.shadowRuntimeElements.get()) {
skip()
}
// TODO: Figure out why this is needed.
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

tasks.shadowJar {
Expand Down
5 changes: 5 additions & 0 deletions partiql-eval/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ tasks.shadowJar {
configurations = listOf(project.configurations.shadow.get())
}

// TODO: Figure out why this is needed.
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

// Workaround for https://github.com/johnrengelman/shadow/issues/651
components.withType(AdhocComponentWithVariants::class.java).forEach { c ->
c.withVariantsFromConfiguration(project.configurations.shadowRuntimeElements.get()) {
Expand Down

0 comments on commit ac4c448

Please sign in to comment.