Skip to content

Version bumps and dependency fixes #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ dependencies {
api(project(":core"))
api(project(":dataframe-arrow"))
api(project(":dataframe-excel"))
api(project(":dataframe-openapi"))
}


allprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
Expand Down
18 changes: 17 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import com.google.devtools.ksp.gradle.KspTaskJvm
import nl.jolanrensen.docProcessor.defaultProcessors.*
import nl.jolanrensen.docProcessor.gradle.creatingProcessDocTask
import org.gradle.jvm.tasks.Jar
import org.jmailen.gradle.kotlinter.tasks.LintTask
import xyz.ronella.gradle.plugin.simple.git.task.GitTask

@Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
Expand Down Expand Up @@ -176,7 +178,21 @@ kotlinter {
)
}

tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
tasks.withType<KspTaskJvm> {
dependsOn(tasks.generateKeywordsSrc)
}

tasks.lintKotlinMain {
dependsOn(tasks.generateKeywordsSrc)
dependsOn("kspKotlin")
}

tasks.lintKotlinTest {
dependsOn(tasks.generateKeywordsSrc)
dependsOn("kspTestKotlin")
}

tasks.withType<LintTask> {
exclude("**/*keywords*/**")
exclude {
it.name.endsWith(".Generated.kt")
Expand Down
2 changes: 1 addition & 1 deletion dataframe-openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {

implementation(libs.kotlin.reflect)
implementation(libs.kotlinpoet)
implementation(libs.swagger)
api(libs.swagger)

testApi(project(":core"))
testImplementation(libs.junit)
Expand Down
6 changes: 3 additions & 3 deletions examples/idea-examples/json/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ plugins {
}

repositories {
mavenLocal()
mavenLocal() // in case of local dataframe development
mavenCentral()
}

kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/")

dependencies {
implementation(project(":core"))
implementation(project(":dataframe-openapi"))
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")
implementation(project(":"))
}

tasks.withType<KotlinCompile> {
Expand Down
4 changes: 3 additions & 1 deletion examples/idea-examples/movies/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ plugins {

repositories {
mavenCentral()
mavenLocal() // in case of local dataframe development
}

kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/")

application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.movies.MoviesWithDataClassKt")

dependencies {
implementation(project(":core"))
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")
implementation(project(":"))
}

tasks.withType<KotlinCompile> {
Expand Down
4 changes: 3 additions & 1 deletion examples/idea-examples/titanic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ plugins {

repositories {
mavenCentral()
mavenLocal() // in case of local dataframe development
}

application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.titanic.ml.TitanicKt")

dependencies {
implementation(project(":core"))
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")
implementation(project(":"))
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-api:0.5.1")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-impl:0.5.1")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-tensorflow:0.5.1")
Expand Down
4 changes: 3 additions & 1 deletion examples/idea-examples/youtube/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ plugins {

repositories {
mavenCentral()
mavenLocal() // in case of local dataframe development
}

kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/")

application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.youtube.YoutubeKt")

dependencies {
implementation(project(":core"))
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")
implementation(project(":"))
implementation(libs.kotlin.datetimeJvm)
}

Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
ksp = "1.8.20-Beta-1.0.9"
ksp = "1.8.20-1.0.10"
kotlinJupyter = "0.11.0-311"
ktlint = "3.4.5"
kotlin = "1.8.20-Beta"
kotlin = "1.8.20"
dokka = "1.8.10"
libsPublisher = "0.0.60-dev-30"
# "Bootstrap" version of the dataframe, used in the build itself to generate @DataSchema APIs,
Expand All @@ -18,7 +18,7 @@ fuel = "2.3.1"
poi = "5.2.2"
kotlinDatetime = "0.4.0"
kotlinpoet = "1.12.0"
openapi = "2.1.2"
openapi = "2.1.13"

junit = "4.13.2"
kotestAsserions = "4.6.3"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion plugins/dataframe-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation(libs.ksp.gradle)
implementation(libs.ksp.api)

testImplementation("junit:junit:4.12")
testImplementation("junit:junit:4.13.1")
testImplementation("io.kotest:kotest-assertions-core:4.6.0")
testImplementation("com.android.tools.build:gradle-api:7.3.1")
testImplementation("com.android.tools.build:gradle:7.3.1")
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
@file:Suppress("UnstableApiUsage")

rootProject.name = "dataframe"
enableFeaturePreview("VERSION_CATALOGS")

includeBuild("generator")
include("plugins:dataframe-gradle-plugin")
include("plugins:symbol-processor")
include("tests")
include("dataframe-arrow")
include("dataframe-openapi")
include("dataframe-excel")
include("core")

include("examples:idea-examples:titanic")
include("examples:idea-examples:movies")
Expand All @@ -30,5 +31,4 @@ pluginManagement {
gradlePluginPortal()
}
}
include("dataframe-excel")
include("core")

13 changes: 11 additions & 2 deletions tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.dataframe.gradle.DataSchemaVisibility
import org.jmailen.gradle.kotlinter.tasks.LintTask

@Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
plugins {
Expand All @@ -12,6 +12,7 @@ plugins {

repositories {
mavenCentral()
mavenLocal() // for local development
}

dependencies {
Expand Down Expand Up @@ -66,7 +67,15 @@ korro {
}
}

tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
tasks.lintKotlinMain {
dependsOn("kspKotlin")
}

tasks.lintKotlinTest {
dependsOn("kspTestKotlin")
}

tasks.withType<LintTask> {
exclude("**/*keywords*/**")
exclude {
it.name.endsWith(".Generated.kt")
Expand Down