Skip to content

Commit

Permalink
Apply patch for partiql-eval
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 authored and yliuuuu committed Jul 10, 2024
1 parent 8277b9b commit 42225c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions partiql-eval/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,26 @@ kotlin {
explicitApi = null
}

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()
}
}

// Need to add this as we have both Java and Kotlin sources. Dokka already handles multi-language projects. If
// Javadoc is enabled, we end up overwriting index.html (causing compilation errors).
tasks.withType<Javadoc>() {
enabled = false
}
tasks.withType<Jar>() {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

publish {
artifactId = "partiql-eval"
name = "PartiQL Lang Kotlin Evaluator"
Expand Down

0 comments on commit 42225c2

Please sign in to comment.