diff --git a/partiql-lang/api/partiql-lang.api b/partiql-lang/api/partiql-lang.api new file mode 100644 index 000000000..e69de29bb diff --git a/partiql-lang/build.gradle.kts b/partiql-lang/build.gradle.kts new file mode 100644 index 000000000..98f121470 --- /dev/null +++ b/partiql-lang/build.gradle.kts @@ -0,0 +1,57 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +plugins { + id(Plugins.conventions) + id(Plugins.publish) +} + +dependencies { + api(project(":partiql-ast")) + api(project(":partiql-eval")) + api(project(":partiql-parser")) + api(project(":partiql-plan")) + api(project(":partiql-planner")) + api(project(":partiql-spi")) + api(project(":partiql-types")) +} + +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() + } +} + +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() + } +} + +publish { + artifactId = "partiql-lang" + name = "PartiQL JVM" + description = "An implementation of PartiQL for the JVM." +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 0a64f593e..ca74e119c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -20,6 +20,7 @@ include( "partiql-cli", "partiql-coverage", "partiql-eval", + "partiql-lang", "partiql-parser", "partiql-plan", "partiql-planner",