Skip to content

Commit 814b858

Browse files
committed
Publish plugin with a deprecation notice in old location
1 parent b242efa commit 814b858

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ gradlePlugin {
5656
id = "org.jetbrains.kotlinx.dataframe"
5757
implementationClass = "org.jetbrains.dataframe.gradle.ConvenienceSchemaGeneratorPlugin"
5858
}
59+
create("deprecatedSchemaGeneratorPlugin") {
60+
id = "org.jetbrains.kotlin.plugin.dataframe"
61+
implementationClass = "org.jetbrains.dataframe.gradle.DeprecatingSchemaGeneratorPlugin"
62+
}
5963
}
6064
}
6165

@@ -71,6 +75,12 @@ pluginBundle {
7175
description = "Gradle plugin providing task for inferring data schemas from your CSV or JSON data"
7276
tags = listOf("dataframe", "kotlin")
7377
}
78+
"deprecatedSchemaGeneratorPlugin" {
79+
// id is captured from java-gradle-plugin configuration
80+
displayName = "Kotlin Dataframe gradle plugin"
81+
description = "The plugin was moved to 'org.jetbrains.kotlinx.dataframe'. Gradle plugin providing task for inferring data schemas from your CSV or JSON data"
82+
tags = listOf("dataframe", "kotlin")
83+
}
7484
}
7585

7686
mavenCoordinates {

plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ class ConvenienceSchemaGeneratorPlugin : Plugin<Project> {
1414
}
1515
}
1616

17+
@Suppress("unused")
18+
class DeprecatingSchemaGeneratorPlugin : Plugin<Project> {
19+
override fun apply(target: Project) {
20+
target.logger.warn("DEPRECATION: Replace plugin id(\"org.jetbrains.kotlin.plugin.dataframe\") and kotlin(\"plugin.dataframe\") with id(\"org.jetbrains.kotlinx.dataframe\").")
21+
target.plugins.apply(ConvenienceSchemaGeneratorPlugin::class.java)
22+
}
23+
}
24+
1725
internal class KspPluginApplier : Plugin<Project> {
1826
override fun apply(target: Project) {
1927
val properties = Properties()

0 commit comments

Comments
 (0)