@@ -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
101101tasks.withType<KspTask > {
@@ -147,14 +147,14 @@ val clearSamplesOutputs by tasks.creating {
147147}
148148
149149val 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
155155val 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,18 @@ tasks.withType<JavaCompile> {
366366}
367367
368368tasks.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" )
371372 }
372373}
373374
374375tasks.test {
375376 maxHeapSize = " 2048m"
376377 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" ,
382381 )
383382 }
384383}
@@ -389,10 +388,10 @@ tasks.processJupyterApiResources {
389388
390389kotlinPublications {
391390 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
396395 }
397396}
398397
0 commit comments