Skip to content

Commit

Permalink
Add partiql-planner Maven publishing plugin v0.10.1 (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 authored Sep 20, 2023
1 parent c6b9c7f commit 0e5332e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## [0.10.1] - 2023-09-19

### Fixes
- Fixes build failure for version `0.10.0` by publishing `partiql-plan` as an independent artifact. Please note that `partiql-plan` is experimental.

## [0.10.0] - 2023-05-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This project is published to [Maven Central](https://search.maven.org/artifact/o

| Group ID | Artifact ID | Recommended Version |
|---------------|-----------------------|---------------------|
| `org.partiql` | `partiql-lang-kotlin` | `0.10.0` |
| `org.partiql` | `partiql-lang-kotlin` | `0.10.1` |


For Maven builds, add the following to your `pom.xml`:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=org.partiql
version=0.10.0
version=0.10.1

ossrhUsername=EMPTY
ossrhPassword=EMPTY
Expand Down
19 changes: 1 addition & 18 deletions partiql-lang/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,15 @@ plugins {
id(Plugins.publish)
}

val libs: Configuration by configurations.creating

configurations {
api.get().extendsFrom(libs)
}

dependencies {
antlr(Deps.antlr)
api(project(":lib:isl"))
api(project(":partiql-spi"))
api(project(":partiql-types"))
api(project(":partiql-plan"))
api(Deps.ionElement)
api(Deps.ionJava)
api(Deps.pigRuntime)
// libs are included in partiql-lang-kotlin JAR
libs(project(":partiql-plan"))
implementation(Deps.antlrRuntime)
implementation(Deps.csv)
implementation(Deps.kotlinReflect)
Expand Down Expand Up @@ -102,13 +95,3 @@ tasks.processResources {
into("org/partiql/type-domains/")
}
}

tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// adds all `libs(project(...))` to the partiql-lang-kotlin jar
from(
libs.dependencies.filterIsInstance<ProjectDependency>().map {
it.dependencyProject.sourceSets.main.get().output.classesDirs
}
)
}
7 changes: 7 additions & 0 deletions partiql-plan/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

plugins {
id(Plugins.conventions)
id(Plugins.publish)
id(Plugins.library)
}

Expand All @@ -25,6 +26,12 @@ dependencies {
implementation(Deps.kotlinReflect)
}

publish {
artifactId = "partiql-plan"
name = "PartiQL Plan"
description = "PartiQL Plan experimental data structures"
}

val generate = tasks.register<Exec>("generate") {
dependsOn(":lib:sprout:install")
workingDir(projectDir)
Expand Down

0 comments on commit 0e5332e

Please sign in to comment.