Skip to content

Commit c1f65f8

Browse files
committed
version bumping kotlinpoet (:generator one behind), sl4j, junit, kotest, converting more string->toml.accessors
1 parent 8b5964b commit c1f65f8

File tree

9 files changed

+75
-43
lines changed

9 files changed

+75
-43
lines changed

generator/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ gradlePlugin {
1919
plugins {
2020
create("dependencies") {
2121
id = "org.jetbrains.dataframe.generator"
22+
version = "1.0"
2223
implementationClass = "org.jetbrains.dataframe.keywords.KeywordsGeneratorPlugin"
2324
}
2425
}

generator/gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
kotlinCompilerVersion=1.6.0
2-
kotlinPoetVersion=1.7.2
1+
kotlinCompilerVersion=1.9.22
2+
3+
# 1.15.0+ breaks with NoSuchMethodException: 'java.io.File com.squareup.kotlinpoet.FileSpec.writeTo(java.io.File)'
4+
kotlinPoetVersion=1.14.2

generator/src/main/kotlin/org/jetbrains/dataframe/keywords/GeneratorTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ open class GeneratorTask : DefaultTask() {
4545
}
4646

4747
private fun getKeywords(tokenSet: TokenSet): List<EnumEntry> {
48-
fun id(value: String) = value.toUpperCase().replace("!", "NOT_")
48+
fun id(value: String) = value.uppercase().replace("!", "NOT_")
4949

5050
return tokenSet.types.map { t ->
5151
t as KtKeywordToken

generator/src/main/kotlin/org/jetbrains/dataframe/keywords/KeywordsGeneratorPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.io.File
1010

1111
class KeywordsGeneratorPlugin: Plugin<Project> {
1212
override fun apply(target: Project): Unit = with(target){
13-
val genSrcDir = buildDir.resolve("generatedSrc")
13+
val genSrcDir = layout.buildDirectory.asFile.get().resolve("generatedSrc")
1414
val sourceSets = project.extensions.getByName("sourceSets") as SourceSetContainer
1515
val mainSourceSet: SourceSet = sourceSets.named("main").get()
1616
mainSourceSet.addDir(genSrcDir)

gradle/libs.versions.toml

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
ksp = "1.9.21-1.0.15"
33
kotlinJupyter = "0.11.0-358"
44
ktlint = "3.4.5"
5+
6+
# make sure to sync with :generator module
57
kotlin = "1.9.0"
8+
kotlinpoet = "1.16.0"
9+
610
dokka = "1.8.10"
711
libsPublisher = "0.0.60-dev-30"
812
# "Bootstrap" version of the dataframe, used in the build itself to generate @DataSchema APIs,
@@ -22,13 +26,14 @@ mysql = "8.0.33"
2226
postgresql = "42.6.0"
2327
sqlite = "3.42.0.1"
2428
kotlinDatetime = "0.4.0"
25-
kotlinpoet = "1.16.0"
2629
openapi = "2.1.20"
27-
kotlinLogging = "5.0.1"
28-
sl4j = "2.0.7"
30+
kotlinLogging = "6.0.3"
31+
sl4j = "2.0.12"
2932

3033
junit = "4.13.2"
31-
kotestAsserions = "4.6.3"
34+
junit-jupiter = "5.10.2"
35+
junit-platform = "1.10.2"
36+
kotestAsserions = "5.8.0"
3237
jsoup = "1.14.3"
3338
arrow = "11.0.0"
3439
docProcessor = "0.3.2"
@@ -38,34 +43,44 @@ plugin-publish = "0.15.0"
3843
shadow = "8.1.1"
3944
android-gradle-api = "7.3.1"
4045
ktor-server-netty = "2.3.8"
46+
kotlin-compile-testing = "1.5.0"
4147

4248
[libraries]
4349
ksp-gradle = { group = "com.google.devtools.ksp", name = "symbol-processing-gradle-plugin", version.ref = "ksp" }
4450
ksp-api = { group = "com.google.devtools.ksp", name = "symbol-processing-api", version.ref = "ksp" }
45-
jupyter-api = { module = "org.jetbrains.kotlinx:kotlin-jupyter-kernel", version.ref = "kotlinJupyter" }
51+
jupyter-api = { group = "org.jetbrains.kotlinx", name = "kotlin-jupyter-kernel", version.ref = "kotlinJupyter" }
4652

4753
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
4854
kotlin-stdlib-jdk8 = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib-jdk8", version.ref = "kotlin" }
4955

5056
kotlin-reflect = { group = "org.jetbrains.kotlin", name = "kotlin-reflect", version.ref = "kotlin" }
5157
kotlin-scriptingJvm = { group = "org.jetbrains.kotlin", name = "kotlin-scripting-jvm", version.ref = "kotlin" }
52-
commonsCsv = { module = "org.apache.commons:commons-csv", version.ref = "commonsCsv" }
53-
commonsCompress = { module = "org.apache.commons:commons-compress", version.ref = "commonsCompress" }
54-
klaxon = { module = "com.beust:klaxon", version.ref = "klaxon" }
55-
fuel = { module = "com.github.kittinunf.fuel:fuel", version.ref = "fuel" }
56-
poi = { module = "org.apache.poi:poi", version.ref = "poi" }
58+
commonsCsv = { group = "org.apache.commons", name = "commons-csv", version.ref = "commonsCsv" }
59+
commonsCompress = { group = "org.apache.commons", name = "commons-compress", version.ref = "commonsCompress" }
60+
klaxon = { group = "com.beust", name = "klaxon", version.ref = "klaxon" }
61+
fuel = { group = "com.github.kittinunf.fuel", name = "fuel", version.ref = "fuel" }
62+
poi = { group = "org.apache.poi", name = "poi", version.ref = "poi" }
5763
mariadb = { group = "org.mariadb.jdbc", name = "mariadb-java-client", version.ref = "mariadb" }
5864
h2db = { group = "com.h2database", name = "h2", version.ref = "h2db" }
5965
mysql = { group = "mysql", name = "mysql-connector-java", version.ref = "mysql" }
6066
postgresql = { group = "org.postgresql", name = "postgresql", version.ref = "postgresql" }
6167
sqlite = { group = "org.xerial", name = "sqlite-jdbc", version.ref = "sqlite" }
6268

63-
poi-ooxml = { module = "org.apache.poi:poi-ooxml", version.ref = "poi" }
64-
kotlin-datetimeJvm = { module = "org.jetbrains.kotlinx:kotlinx-datetime-jvm", version.ref = "kotlinDatetime" }
69+
poi-ooxml = { group = "org.apache.poi", name = "poi-ooxml", version.ref = "poi" }
70+
kotlin-datetimeJvm = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime-jvm", version.ref = "kotlinDatetime" }
6571

66-
junit = { module = "junit:junit", version.ref = "junit" }
67-
kotestAssertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotestAsserions" }
68-
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
72+
junit = { group = "junit", name = "junit", version.ref = "junit" }
73+
74+
junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit-jupiter" }
75+
junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit-jupiter" }
76+
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit-jupiter" }
77+
junit-platform-commons = { group = "org.junit.platform", name = "junit-platform-commons", version.ref = "junit-platform" }
78+
junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit-platform" }
79+
junit-platform-runner = { group = "org.junit.platform", name = "junit-platform-runner", version.ref = "junit-platform" }
80+
junit-platform-suite-api = { group = "org.junit.platform", name = "junit-platform-suite-api", version.ref = "junit-platform" }
81+
82+
kotestAssertions = { group = "io.kotest", name = "kotest-assertions-core", version.ref = "kotestAsserions" }
83+
jsoup = { group = "org.jsoup", name = "jsoup", version.ref = "jsoup" }
6984

7085
arrow-format = { group = "org.apache.arrow", name = "arrow-format", version.ref = "arrow" }
7186
arrow-vector = { group = "org.apache.arrow", name = "arrow-vector", version.ref = "arrow" }
@@ -78,7 +93,17 @@ kotlinLogging = { group = "io.github.oshai", name = "kotlin-logging", version.re
7893
sl4j = { group = "org.slf4j", name = "slf4j-simple", version.ref = "sl4j" }
7994
android-gradle-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "android-gradle-api" }
8095
android-gradle = { group = "com.android.tools.build", name = "gradle", version.ref = "android-gradle-api" }
96+
kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin" }
97+
kotlin-gradle-plugin-api = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin-api" }
8198
ktor-server-netty = { group = "io.ktor", name = "ktor-server-netty", version.ref = "ktor-server-netty" }
99+
kotlin-compile-testing = { group = "com.github.tschuchortdev", name = "kotlin-compile-testing", version.ref = "kotlin-compile-testing" }
100+
kotlin-compile-testing-ksp = { group = "com.github.tschuchortdev", name = "kotlin-compile-testing-ksp", version.ref = "kotlin-compile-testing" }
101+
kotlin-compiler = { group = "org.jetbrains.kotlin", name = "kotlin-compiler", version.ref = "kotlin" }
102+
kotlin-compiler-embeddable = { group = "org.jetbrains.kotlin", name = "kotlin-compiler-embeddable", version.ref = "kotlin" }
103+
kotlin-compiler-internal-test-framework = { group = "org.jetbrains.kotlin", name = "kotlin-compiler-internal-test-framework", version.ref = "kotlin" }
104+
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" }
105+
kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin" }
106+
kotlin-annotations-jvm = { group = "org.jetbrains.kotlin", name = "kotlin-annotations-jvm", version.ref = "kotlin" }
82107

83108
[plugins]
84109
jupyter-api = { id = "org.jetbrains.kotlin.jupyter.api", version.ref = "kotlinJupyter" }
@@ -92,10 +117,9 @@ kotlinter = { id = "org.jmailen.kotlinter", version.ref = "ktlint" }
92117
dataframe = { id = "org.jetbrains.kotlinx.dataframe", version.ref = "dataframe" }
93118
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
94119
docProcessor = { id = "nl.jolanrensen.docProcessor", version.ref = "docProcessor" }
95-
simpleGit = { id = "xyz.ronella.simple-git", version.ref = "simpleGit"}
120+
simpleGit = { id = "xyz.ronella.simple-git", version.ref = "simpleGit" }
96121
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
97122
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
98123
dependencyVersions = { id = "com.github.ben-manes.versions", version.ref = "dependencyVersions" }
99124
plugin-publish = { id = "com.gradle.plugin-publish", version.ref = "plugin-publish" }
100125
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
101-

plugins/dataframe-gradle-plugin/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ dependencies {
2121
implementation(project(":dataframe-openapi"))
2222
implementation(project(":dataframe-excel"))
2323
implementation(project(":dataframe-jdbc"))
24-
implementation(kotlin("gradle-plugin-api"))
25-
implementation(kotlin("gradle-plugin"))
24+
25+
implementation(libs.kotlin.gradle.plugin.api)
26+
implementation(libs.kotlin.gradle.plugin)
2627
implementation(libs.klaxon)
2728
implementation(libs.ksp.gradle)
2829
implementation(libs.ksp.api)
@@ -71,6 +72,7 @@ gradlePlugin {
7172
}
7273
}
7374

75+
7476
pluginBundle {
7577
// These settings are set for the whole plugin bundle
7678
website = "https://github.com/Kotlin/dataframe"

plugins/expressions-converter/build.gradle.kts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,25 @@ repositories {
1515
}
1616

1717
dependencies {
18-
val kotlinVersion = libs.versions.kotlin.get()
19-
val compiler = "org.jetbrains.kotlin:kotlin-compiler:$kotlinVersion"
20-
compileOnly(compiler)
18+
compileOnly(libs.kotlin.compiler)
2119

22-
testImplementation(compiler)
23-
testImplementation("org.jetbrains.kotlin:kotlin-compiler-internal-test-framework:$kotlinVersion")
20+
testImplementation(libs.kotlin.compiler)
21+
testImplementation(libs.kotlin.compiler.internal.test.framework)
2422

2523
testRuntimeOnly(project(":core"))
2624

27-
testRuntimeOnly("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
28-
testRuntimeOnly("org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion")
29-
testRuntimeOnly("org.jetbrains.kotlin:kotlin-annotations-jvm:$kotlinVersion")
25+
testRuntimeOnly(libs.kotlin.test)
26+
testRuntimeOnly(libs.kotlin.script.runtime)
27+
testRuntimeOnly(libs.kotlin.annotations.jvm)
3028

31-
testImplementation(platform("org.junit:junit-bom:5.8.0"))
32-
testImplementation("org.junit.jupiter:junit-jupiter")
33-
testImplementation("org.junit.platform:junit-platform-commons")
34-
testImplementation("org.junit.platform:junit-platform-launcher")
35-
testImplementation("org.junit.platform:junit-platform-runner")
36-
testImplementation("org.junit.platform:junit-platform-suite-api")
37-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
29+
testImplementation(platform(libs.junit.bom))
30+
testImplementation(libs.junit.jupiter)
31+
testImplementation(libs.junit.platform.commons)
32+
testImplementation(libs.junit.platform.launcher)
33+
testImplementation(libs.junit.platform.runner)
34+
testImplementation(libs.junit.platform.suite.api)
35+
36+
testRuntimeOnly(libs.junit.jupiter.engine)
3837
}
3938

4039
tasks.test {

plugins/symbol-processor/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlinx.publisher.PomUtilKt
2+
13
plugins {
24
alias(libs.plugins.shadow)
35
alias(libs.plugins.kotlin.jvm)
@@ -24,15 +26,15 @@ dependencies {
2426
implementation(libs.h2db)
2527
testImplementation(libs.h2db)
2628
testImplementation("org.jetbrains.kotlin:kotlin-test")
27-
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.5.0")
28-
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:1.5.0")
29-
testImplementation("io.ktor:ktor-server-netty:1.6.7")
30-
testImplementation("io.kotest:kotest-assertions-core:4.6.0")
29+
testImplementation(libs.kotlin.compile.testing)
30+
testImplementation(libs.kotlin.compile.testing.ksp)
31+
testImplementation(libs.ktor.server.netty)
32+
testImplementation(libs.kotestAssertions)
3133
}
3234

3335
kotlinPublications {
3436
pom {
35-
use(org.jetbrains.kotlinx.publisher.PomUtilKt) {
37+
use(PomUtilKt) {
3638
githubRepo("Kotlin", "dataframe")
3739
inceptionYear.set("2021")
3840
licenses {

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
rootProject.name = "dataframe"
44

5+
// treated as a separate project with its own Kotlin version etc.
56
includeBuild("generator")
7+
68
include("plugins:dataframe-gradle-plugin")
79
include("plugins:symbol-processor")
810
include("plugins:expressions-converter")

0 commit comments

Comments
 (0)