Skip to content

Commit

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

### Security

## [0.11.1] - 2023-09-19

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

## [0.11.0] - 2023-05-22

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.11.0` |
| `org.partiql` | `partiql-lang-kotlin` | `0.11.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.11.0
version=0.11.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,12 +22,6 @@ plugins {
id(Plugins.publish)
}

val libs: Configuration by configurations.creating

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

// Disabled for partiql-lang project.
kotlin {
explicitApi = null
Expand All @@ -38,11 +32,10 @@ dependencies {
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 @@ -107,13 +100,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
}
)
}
12 changes: 12 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,17 @@ dependencies {
implementation(Deps.kotlinReflect)
}

// Disabled for partiql-plan project.
kotlin {
explicitApi = null
}

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 68023ac

Please sign in to comment.