Skip to content

Commit 1a1214a

Browse files
committed
now all gradle versions are up-to-date, updating all .set() notations with = for better readability
1 parent 65ee6d4 commit 1a1214a

File tree

12 files changed

+54
-56
lines changed

12 files changed

+54
-56
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ subprojects {
222222
}
223223

224224
kotlinPublications {
225-
fairDokkaJars.set(false)
225+
fairDokkaJars = false
226226

227227
sonatypeSettings(
228228
project.findProperty("kds.sonatype.user") as String?,
@@ -238,7 +238,7 @@ kotlinPublications {
238238

239239
pom {
240240
githubRepo("Kotlin", "dataframe")
241-
inceptionYear.set("2021")
241+
inceptionYear = "2021"
242242
licenses {
243243
apache2()
244244
}
@@ -252,10 +252,10 @@ kotlinPublications {
252252
}
253253

254254
publication {
255-
publicationName.set("api")
256-
artifactId.set(projectName)
257-
description.set("Data processing in Kotlin")
258-
packageName.set(artifactId)
255+
publicationName = "api"
256+
artifactId = projectName
257+
description = "Data processing in Kotlin"
258+
packageName = artifactId
259259
}
260260

261261
localRepositories {

core/build.gradle.kts

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ val compileSamplesKotlin = tasks.named<KotlinCompile>("compileSamplesKotlin") {
9595
libraries.from(it.libraries)
9696
}
9797
source(sourceSets["test"].kotlin)
98-
destinationDirectory.set(layout.buildDirectory.dir("classes/testWithOutputs/kotlin"))
98+
destinationDirectory = layout.buildDirectory.dir("classes/testWithOutputs/kotlin")
9999
}
100100

101101
tasks.withType<KspTask> {
@@ -147,14 +147,14 @@ val clearSamplesOutputs by tasks.creating {
147147
}
148148

149149
val addSamplesToGit by tasks.creating(GitTask::class) {
150-
directory.set(file("."))
151-
command.set("add")
152-
args.set(listOf("-A", "../docs/StardustDocs/snippets"))
150+
directory = file(".")
151+
command = "add"
152+
args = listOf("-A", "../docs/StardustDocs/snippets")
153153
}
154154

155155
val copySamplesOutputs = tasks.register<JavaExec>("copySamplesOutputs") {
156156
group = "documentation"
157-
mainClass.set("org.jetbrains.kotlinx.dataframe.explainer.SampleAggregatorKt")
157+
mainClass = "org.jetbrains.kotlinx.dataframe.explainer.SampleAggregatorKt"
158158

159159
dependsOn(clearSamplesOutputs)
160160
dependsOn(samplesTest)
@@ -305,8 +305,8 @@ korro {
305305

306306
groupSamples {
307307

308-
beforeSample.set("<tab title=\"NAME\">\n")
309-
afterSample.set("\n</tab>")
308+
beforeSample = "<tab title=\"NAME\">\n"
309+
afterSample = "\n</tab>"
310310

311311
funSuffix("_properties") {
312312
replaceText("NAME", "Properties")
@@ -317,8 +317,8 @@ korro {
317317
funSuffix("_strings") {
318318
replaceText("NAME", "Strings")
319319
}
320-
beforeGroup.set("<tabs>\n")
321-
afterGroup.set("</tabs>")
320+
beforeGroup = "<tabs>\n"
321+
afterGroup = "</tabs>"
322322
}
323323
}
324324

@@ -366,19 +366,17 @@ tasks.withType<JavaCompile> {
366366
}
367367

368368
tasks.withType<KotlinCompile> {
369-
kotlinOptions {
370-
freeCompilerArgs = freeCompilerArgs + listOf("-Xinline-classes", "-Xopt-in=kotlin.RequiresOptIn")
369+
compilerOptions {
370+
freeCompilerArgs.addAll("-Xinline-classes", "-Xopt-in=kotlin.RequiresOptIn")
371371
}
372372
}
373373

374374
tasks.test {
375375
maxHeapSize = "2048m"
376376
extensions.configure(kotlinx.kover.api.KoverTaskExtension::class) {
377-
excludes.set(
378-
listOf(
379-
"org.jetbrains.kotlinx.dataframe.jupyter.*",
380-
"org.jetbrains.kotlinx.dataframe.jupyter.SampleNotebooksTests",
381-
),
377+
excludes = listOf(
378+
"org.jetbrains.kotlinx.dataframe.jupyter.*",
379+
"org.jetbrains.kotlinx.dataframe.jupyter.SampleNotebooksTests",
382380
)
383381
}
384382
}
@@ -389,10 +387,10 @@ tasks.processJupyterApiResources {
389387

390388
kotlinPublications {
391389
publication {
392-
publicationName.set("core")
393-
artifactId.set("dataframe-core")
394-
description.set("Dataframe core API")
395-
packageName.set(artifactId)
390+
publicationName = "core"
391+
artifactId = "dataframe-core"
392+
description = "Dataframe core API"
393+
packageName = artifactId
396394
}
397395
}
398396

dataframe-arrow/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ dependencies {
3434

3535
kotlinPublications {
3636
publication {
37-
publicationName.set("dataframeArrow")
38-
artifactId.set(project.name)
39-
description.set("Apache Arrow support for Kotlin Dataframe")
40-
packageName.set(artifactId)
37+
publicationName = "dataframeArrow"
38+
artifactId = project.name
39+
description = "Apache Arrow support for Kotlin Dataframe"
40+
packageName = artifactId
4141
}
4242
}
4343

dataframe-excel/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ dependencies {
2828

2929
kotlinPublications {
3030
publication {
31-
publicationName.set("dataframeExcel")
32-
artifactId.set(project.name)
33-
description.set("Excel support for Kotlin Dataframe")
34-
packageName.set(artifactId)
31+
publicationName = "dataframeExcel"
32+
artifactId = project.name
33+
description = "Excel support for Kotlin Dataframe"
34+
packageName = artifactId
3535
}
3636
}
3737

dataframe-jdbc/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ dependencies {
3636

3737
kotlinPublications {
3838
publication {
39-
publicationName.set("dataframeJDBC")
40-
artifactId.set(project.name)
41-
description.set("JDBC support for Kotlin Dataframe")
42-
packageName.set(artifactId)
39+
publicationName = "dataframeJDBC"
40+
artifactId = project.name
41+
description = "JDBC support for Kotlin Dataframe"
42+
packageName = artifactId
4343
}
4444
}
4545

dataframe-openapi/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ dependencies {
4040

4141
kotlinPublications {
4242
publication {
43-
publicationName.set("dataframeOpenApi")
44-
artifactId.set(project.name)
45-
description.set("OpenAPI support for Kotlin Dataframe")
46-
packageName.set(artifactId)
43+
publicationName = "dataframeOpenApi"
44+
artifactId = project.name
45+
description = "OpenAPI support for Kotlin Dataframe"
46+
packageName = artifactId
4747
}
4848
}
4949

examples/idea-examples/movies/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
mavenLocal() // in case of local dataframe development
1616
}
1717

18-
application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.movies.MoviesWithDataClassKt")
18+
application.mainClass = "org.jetbrains.kotlinx.dataframe.examples.movies.MoviesWithDataClassKt"
1919

2020
dependencies {
2121
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")

examples/idea-examples/titanic/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repositories {
1313
mavenLocal() // in case of local dataframe development
1414
}
1515

16-
application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.titanic.ml.TitanicKt")
16+
application.mainClass = "org.jetbrains.kotlinx.dataframe.examples.titanic.ml.TitanicKt"
1717

1818
dependencies {
1919
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")

examples/idea-examples/youtube/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
mavenLocal() // in case of local dataframe development
1616
}
1717

18-
application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.youtube.YoutubeKt")
18+
application.mainClass = "org.jetbrains.kotlinx.dataframe.examples.youtube.YoutubeKt"
1919

2020
dependencies {
2121
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")

plugins/expressions-converter/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sourceSets {
6161

6262
tasks.create<JavaExec>("generateTests") {
6363
classpath = sourceSets.test.get().runtimeClasspath
64-
mainClass.set("org.jetbrains.kotlinx.dataframe.GenerateTestsKt")
64+
mainClass = "org.jetbrains.kotlinx.dataframe.GenerateTestsKt"
6565
}
6666

6767
fun Test.setLibraryProperty(propName: String, jarName: String) {

0 commit comments

Comments
 (0)