@@ -95,7 +95,7 @@ val compileSamplesKotlin = tasks.named<KotlinCompile>("compileSamplesKotlin") {
95
95
libraries.from(it.libraries)
96
96
}
97
97
source(sourceSets[" test" ].kotlin)
98
- destinationDirectory.set( layout.buildDirectory.dir(" classes/testWithOutputs/kotlin" ) )
98
+ destinationDirectory = layout.buildDirectory.dir(" classes/testWithOutputs/kotlin" )
99
99
}
100
100
101
101
tasks.withType<KspTask > {
@@ -147,14 +147,14 @@ val clearSamplesOutputs by tasks.creating {
147
147
}
148
148
149
149
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" )
153
153
}
154
154
155
155
val copySamplesOutputs = tasks.register<JavaExec >(" copySamplesOutputs" ) {
156
156
group = " documentation"
157
- mainClass.set( " org.jetbrains.kotlinx.dataframe.explainer.SampleAggregatorKt" )
157
+ mainClass = " org.jetbrains.kotlinx.dataframe.explainer.SampleAggregatorKt"
158
158
159
159
dependsOn(clearSamplesOutputs)
160
160
dependsOn(samplesTest)
@@ -305,8 +305,8 @@ korro {
305
305
306
306
groupSamples {
307
307
308
- beforeSample.set( " <tab title=\" NAME\" >\n " )
309
- afterSample.set( " \n </tab>" )
308
+ beforeSample = " <tab title=\" NAME\" >\n "
309
+ afterSample = " \n </tab>"
310
310
311
311
funSuffix(" _properties" ) {
312
312
replaceText(" NAME" , " Properties" )
@@ -317,8 +317,8 @@ korro {
317
317
funSuffix(" _strings" ) {
318
318
replaceText(" NAME" , " Strings" )
319
319
}
320
- beforeGroup.set( " <tabs>\n " )
321
- afterGroup.set( " </tabs>" )
320
+ beforeGroup = " <tabs>\n "
321
+ afterGroup = " </tabs>"
322
322
}
323
323
}
324
324
@@ -366,19 +366,18 @@ tasks.withType<JavaCompile> {
366
366
}
367
367
368
368
tasks.withType<KotlinCompile > {
369
- kotlinOptions {
370
- freeCompilerArgs = freeCompilerArgs + listOf (" -Xinline-classes" , " -Xopt-in=kotlin.RequiresOptIn" )
369
+ compilerOptions {
370
+ optIn.addAll(" kotlin.RequiresOptIn" )
371
+ freeCompilerArgs.addAll(" -Xinline-classes" )
371
372
}
372
373
}
373
374
374
375
tasks.test {
375
376
maxHeapSize = " 2048m"
376
377
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
- ),
378
+ excludes = listOf (
379
+ " org.jetbrains.kotlinx.dataframe.jupyter.*" ,
380
+ " org.jetbrains.kotlinx.dataframe.jupyter.SampleNotebooksTests" ,
382
381
)
383
382
}
384
383
}
@@ -389,10 +388,10 @@ tasks.processJupyterApiResources {
389
388
390
389
kotlinPublications {
391
390
publication {
392
- publicationName.set( " core" )
393
- artifactId.set( " dataframe-core" )
394
- description.set( " Dataframe core API" )
395
- packageName.set( artifactId)
391
+ publicationName = " core"
392
+ artifactId = " dataframe-core"
393
+ description = " Dataframe core API"
394
+ packageName = artifactId
396
395
}
397
396
}
398
397
0 commit comments