Skip to content

Commit f2ba9f0

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 180a31e + 4f2a668 commit f2ba9f0

File tree

10 files changed

+9
-110
lines changed

10 files changed

+9
-110
lines changed

core/api/core.api

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6581,8 +6581,6 @@ public final class org/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords : j
65816581
public static final field EXTERNAL Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
65826582
public static final field FINAL Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
65836583
public static final field FUN Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
6584-
public static final field HEADER Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
6585-
public static final field IMPL Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
65866584
public static final field IN Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
65876585
public static final field INFIX Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
65886586
public static final field INLINE Lorg/jetbrains/kotlinx/dataframe/keywords/ModifierKeywords;
@@ -6636,8 +6634,6 @@ public final class org/jetbrains/kotlinx/dataframe/keywords/SoftKeywords : java/
66366634
public static final field FINAL Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
66376635
public static final field FINALLY Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
66386636
public static final field GET Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
6639-
public static final field HEADER Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
6640-
public static final field IMPL Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
66416637
public static final field IMPORT Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
66426638
public static final field INFIX Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;
66436639
public static final field INIT Lorg/jetbrains/kotlinx/dataframe/keywords/SoftKeywords;

core/build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import nl.jolanrensen.kodex.gradle.creatingRunKodexTask
55
import org.gradle.jvm.tasks.Jar
66
import org.gradle.kotlin.dsl.withType
77
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
8-
import xyz.ronella.gradle.plugin.simple.git.task.GitTask
98

109
plugins {
1110
with(libs.plugins) {
@@ -16,7 +15,6 @@ plugins {
1615
// alias(kover)
1716
alias(ktlint)
1817
alias(kodex)
19-
alias(simpleGit)
2018
alias(buildconfig)
2119
alias(binary.compatibility.validator)
2220

@@ -152,23 +150,13 @@ val clearSamplesOutputs by tasks.registering {
152150
}
153151
}
154152

155-
val addSamplesToGit by tasks.registering(GitTask::class, fun GitTask.() {
156-
directory = file(".")
157-
command = "add"
158-
args = listOf("-A", "../docs/StardustDocs/resources/snippets")
159-
})
160-
161153
val copySamplesOutputs = tasks.register<JavaExec>("copySamplesOutputs") {
162154
group = "documentation"
163155
mainClass = "org.jetbrains.kotlinx.dataframe.explainer.SampleAggregatorKt"
164156

165157
dependsOn(clearSamplesOutputs)
166158
dependsOn(samplesTest)
167159
classpath = sourceSets.test.get().runtimeClasspath
168-
169-
doLast {
170-
addSamplesToGit.get().executeCommand()
171-
}
172160
}
173161

174162
tasks.withType<KorroTask> {

examples/kotlin-dataframe-plugin-example/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import org.jlleitschuh.gradle.ktlint.KtlintExtension
22

33
plugins {
44
id("org.jlleitschuh.gradle.ktlint") version "12.3.0"
5-
kotlin("jvm") version "2.2.20-dev-3524"
6-
kotlin("plugin.dataframe") version "2.2.20-dev-3524"
5+
kotlin("jvm") version "2.2.20-Beta2"
6+
kotlin("plugin.dataframe") version "2.2.20-Beta2"
77
}
88

99
group = "org.example"

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[versions]
2-
ksp = "2.2.0-2.0.2"
2+
ksp = "2.2.20-Beta2-2.0.2"
33
kotlinJupyter = "0.15.0-587"
44

55
ktlint = "12.3.0"
66

7-
# make sure to sync both manually with :generator module
8-
kotlin = "2.2.0" # needs jupyter compatibility with Kotlin 2.1 to update
7+
kotlin = "2.2.20-Beta2"
8+
# make sure to sync manually with :generator module
99
kotlinpoet = "2.2.0"
1010

1111
dokka = "2.0.0"
1212
libsPublisher = "2.2.0-dev-61"
1313

1414
# "Bootstrap" version of the dataframe, used in the build itself to generate @DataSchema APIs,
1515
# dogfood Gradle / KSP plugins in tests and idea-examples modules
16-
dataframe = "1.0.0-dev-6538"
16+
dataframe = "1.0.0-dev-8314"
1717
korro = "0.1.6"
1818

1919
binaryCompatibilityValidator = "0.17.0"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

plugins/dataframe-gradle-plugin/src/test/kotlin/org/jetbrains/dataframe/gradle/SourceSetsExpectationsTest.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package org.jetbrains.dataframe.gradle
22

3-
import io.kotest.assertions.asClue
43
import io.kotest.inspectors.forAny
54
import io.kotest.matchers.shouldBe
6-
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
75
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
86
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
97
import org.junit.Test
@@ -29,18 +27,4 @@ class SourceSetsExpectationsTest {
2927
it.sourceSets.findByName("jvmMain") shouldBe null
3028
}
3129
}
32-
33-
@Test
34-
fun `there is main in android project`() {
35-
val project = makeProject()
36-
project.plugins.apply("com.android.application")
37-
project.plugins.apply("org.jetbrains.kotlin.android")
38-
project.extensions.getByType(KotlinAndroidProjectExtension::class.java).let { extension ->
39-
val main = extension.sourceSets.getByName("main")
40-
main.kotlin.sourceDirectories.toList().asClue { files ->
41-
files.forAny { it.shouldEndWith("src", "main", "java") }
42-
files.forAny { it.shouldEndWith("src", "main", "kotlin") }
43-
}
44-
}
45-
}
4630
}
Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package org.jetbrains.dataframe.gradle.taskProperties
22

3-
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
43
import io.kotest.assertions.throwables.shouldNotThrow
54
import io.kotest.matchers.shouldBe
65
import org.gradle.api.ProjectConfigurationException
76
import org.jetbrains.dataframe.gradle.GenerateDataSchemaTask
87
import org.jetbrains.dataframe.gradle.SchemaGeneratorExtension
98
import org.jetbrains.dataframe.gradle.SchemaGeneratorPlugin
109
import org.jetbrains.dataframe.gradle.makeProject
11-
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
1210
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
1311
import org.junit.Test
1412

@@ -35,31 +33,4 @@ class TaskDataSchemaPropertyTest {
3533
.dataSchema.get()
3634
.shouldBe(project.file("build/generated/dataframe/main1/kotlin/org/example/my/321.Generated.kt"))
3735
}
38-
39-
@Test
40-
fun `extension sourceSet present in android project`() {
41-
val project = makeProject()
42-
project.plugins.apply(SchemaGeneratorPlugin::class.java)
43-
project.plugins.apply("com.android.application")
44-
project.plugins.apply("org.jetbrains.kotlin.android")
45-
(project.extensions.getByName("android") as BaseAppModuleExtension).let {
46-
it.compileSdk = 30
47-
}
48-
project.extensions.getByType(KotlinAndroidProjectExtension::class.java).apply {
49-
sourceSets.create("main1")
50-
}
51-
project.extensions.getByType(SchemaGeneratorExtension::class.java).apply {
52-
sourceSet = "main1"
53-
schema {
54-
data = "123"
55-
name = "org.example.my.321"
56-
}
57-
}
58-
shouldNotThrow<ProjectConfigurationException> {
59-
project.evaluate()
60-
}
61-
(project.tasks.getByName("generateDataFrame321") as GenerateDataSchemaTask)
62-
.dataSchema.get()
63-
.shouldBe(project.file("build/generated/dataframe/main1/kotlin/org/example/my/321.Generated.kt"))
64-
}
6536
}

plugins/dataframe-gradle-plugin/src/test/kotlin/org/jetbrains/dataframe/gradle/taskProperties/TaskPackageNamePropertyTest.kt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.jetbrains.dataframe.gradle.taskProperties
22

3-
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
43
import io.kotest.assertions.throwables.shouldThrow
54
import io.kotest.matchers.shouldBe
65
import org.gradle.api.ProjectConfigurationException
@@ -113,27 +112,6 @@ class TaskPackageNamePropertyTest {
113112
.packageName.get() shouldBe "org.test.dataframe"
114113
}
115114

116-
@Test
117-
fun `task infers packageName from directory structure on android`() {
118-
val project = makeProject()
119-
project.plugins.apply(SchemaGeneratorPlugin::class.java)
120-
project.plugins.apply("com.android.application")
121-
project.plugins.apply("org.jetbrains.kotlin.android")
122-
(project.extensions.getByName("android") as BaseAppModuleExtension).let {
123-
it.compileSdk = 30
124-
}
125-
File(project.projectDir, "/src/main/kotlin/org/test/").also { it.mkdirs() }
126-
project.extensions.getByType(SchemaGeneratorExtension::class.java).apply {
127-
schema {
128-
data = "123"
129-
name = "321"
130-
}
131-
}
132-
project.evaluate()
133-
(project.tasks.getByName("generateDataFrame321") as GenerateDataSchemaTask)
134-
.packageName.get() shouldBe "org.test.dataframe"
135-
}
136-
137115
@Test
138116
fun `task will not add _dataframe_ if inferred package ends with _dataframe_`() {
139117
val project = makeProject()

plugins/kotlin-dataframe/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
## :plugins:kotlin-dataframe
22

3-
This module, published as "compiler-plugin-all", holds the Kotlin 2.x Compiler plugin of DataFrame.
4-
5-
A [work-in-progress](https://github.com/Kotlin/dataframe/issues/704)
6-
plugin for your Kotlin project that can generate on-the-fly column accessors for the compiler and IDE even without
7-
having to provide data schemas!
8-
9-
Details of how to use this compiler plugin for your own project will follow, but there is a
10-
[demo project](https://github.com/koperagen/df-plugin-demo) you can try already.
3+
Development of this module was moved to the Kotlin repository:
4+
https://github.com/JetBrains/kotlin/tree/master/plugins/kotlin-dataframe

plugins/kotlin-dataframe/build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
44
plugins {
55
id("java")
66
kotlin("jvm")
7-
kotlin("libs.publisher")
8-
id("com.github.johnrengelman.shadow") version "8.1.1"
97
kotlin("plugin.serialization")
108
}
119

@@ -112,16 +110,6 @@ fun Test.setLibraryProperty(propName: String, jarName: String) {
112110
systemProperty(propName, path)
113111
}
114112

115-
kotlinPublications {
116-
fairDokkaJars = false
117-
publication {
118-
publicationName = "api"
119-
artifactId = "compiler-plugin-all"
120-
description = "Data processing in Kotlin"
121-
packageName = artifactId
122-
}
123-
}
124-
125113
// Disabling all tests before removing the compiler plugin here
126114
// because we're moving to the Kotlin repo: #1290
127115
tasks.filter {

0 commit comments

Comments
 (0)