From e3a848c05d9b88555ceb58faf91735899e2da7ff Mon Sep 17 00:00:00 2001 From: Victor Turansky Date: Wed, 25 Dec 2024 20:53:44 +0200 Subject: [PATCH] Fix Gradle warnings --- actions-kotlin/build.gradle.kts | 2 +- browser-kotlin/build.gradle.kts | 6 +++--- cesium-kotlin/build.gradle.kts | 4 ++-- csstype-kotlin/build.gradle.kts | 2 +- popper-kotlin/build.gradle.kts | 2 +- react-kotlin/build.gradle.kts | 2 +- react-query-kotlin/build.gradle.kts | 4 ++-- react-table-kotlin/build.gradle.kts | 2 +- react-virtual-kotlin/build.gradle.kts | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/actions-kotlin/build.gradle.kts b/actions-kotlin/build.gradle.kts index b1af9a974..f36ddbf76 100644 --- a/actions-kotlin/build.gradle.kts +++ b/actions-kotlin/build.gradle.kts @@ -19,7 +19,7 @@ dependencies { jsMainImplementation(libs.coroutines.core) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) into(kotlinWrappersDir("kotlin-actions-toolkit")) } diff --git a/browser-kotlin/build.gradle.kts b/browser-kotlin/build.gradle.kts index 58c6d25e4..f0ffe2c33 100644 --- a/browser-kotlin/build.gradle.kts +++ b/browser-kotlin/build.gradle.kts @@ -127,7 +127,7 @@ fun isFromWrapperProject(wp: WrapperProject): Spec { } } -val syncKotlinJs by tasks.creating(SyncWrappers::class) { +val syncKotlinJs by tasks.registering(SyncWrappers::class) { from(generatedDir) { include(isFromWrapperProject(WrapperProject.JS)) @@ -142,7 +142,7 @@ val syncKotlinJs by tasks.creating(SyncWrappers::class) { into(kotlinWrappersDir("kotlin-js")) } -val syncKotlinWeb by tasks.creating(SyncWrappers::class) { +val syncKotlinWeb by tasks.registering(SyncWrappers::class) { from(generatedDir) { include(isFromWrapperProject(WrapperProject.WEB)) } @@ -150,7 +150,7 @@ val syncKotlinWeb by tasks.creating(SyncWrappers::class) { into(kotlinWrappersDir("kotlin-web")) } -val syncKotlinBrowser by tasks.creating(SyncWrappers::class) { +val syncKotlinBrowser by tasks.registering(SyncWrappers::class) { from(generatedDir) { include(isFromWrapperProject(WrapperProject.BROWSER)) } diff --git a/cesium-kotlin/build.gradle.kts b/cesium-kotlin/build.gradle.kts index 3b16a4260..9c63546b6 100644 --- a/cesium-kotlin/build.gradle.kts +++ b/cesium-kotlin/build.gradle.kts @@ -11,14 +11,14 @@ dependencies { jsMainImplementation(kotlinWrappers.browser) } -val syncCesiumEngine by tasks.creating(SyncWrappers::class) { +val syncCesiumEngine by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("cesium/engine/") } into(kotlinWrappersDir("kotlin-cesium-engine")) } -val syncCesiumWidgets by tasks.creating(SyncWrappers::class) { +val syncCesiumWidgets by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("cesium/widgets/") } diff --git a/csstype-kotlin/build.gradle.kts b/csstype-kotlin/build.gradle.kts index b765e06a3..49bf6079f 100644 --- a/csstype-kotlin/build.gradle.kts +++ b/csstype-kotlin/build.gradle.kts @@ -10,7 +10,7 @@ dependencies { jsMainImplementation(kotlinWrappers.js) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("web/cssom/**") } diff --git a/popper-kotlin/build.gradle.kts b/popper-kotlin/build.gradle.kts index 517fb9c2e..22351b7f4 100644 --- a/popper-kotlin/build.gradle.kts +++ b/popper-kotlin/build.gradle.kts @@ -10,7 +10,7 @@ dependencies { jsMainImplementation(kotlinWrappers.browser) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) into(kotlinWrappersDir("kotlin-popper")) } diff --git a/react-kotlin/build.gradle.kts b/react-kotlin/build.gradle.kts index fa660dfbb..74dd3d9be 100644 --- a/react-kotlin/build.gradle.kts +++ b/react-kotlin/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { jsMainImplementation(kotlinWrappers.reactCore) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) into(kotlinWrappersDir("kotlin-react-dom")) } diff --git a/react-query-kotlin/build.gradle.kts b/react-query-kotlin/build.gradle.kts index 8574ff4f6..4341d2504 100644 --- a/react-query-kotlin/build.gradle.kts +++ b/react-query-kotlin/build.gradle.kts @@ -17,14 +17,14 @@ dependencies { jsMainImplementation(kotlinWrappers.reactCore) } -val syncCoreWrappers by tasks.creating(SyncWrappers::class) { +val syncCoreWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("tanstack/query/") } into(kotlinWrappersDir("kotlin-tanstack-query-core")) } -val syncReactWrappers by tasks.creating(SyncWrappers::class) { +val syncReactWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("tanstack/react/") } diff --git a/react-table-kotlin/build.gradle.kts b/react-table-kotlin/build.gradle.kts index 1087a858f..a10f2d4de 100644 --- a/react-table-kotlin/build.gradle.kts +++ b/react-table-kotlin/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { jsMainImplementation(kotlinWrappers.reactCore) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) { include("tanstack/table/") } diff --git a/react-virtual-kotlin/build.gradle.kts b/react-virtual-kotlin/build.gradle.kts index f22a4b9b4..d6bb43b29 100644 --- a/react-virtual-kotlin/build.gradle.kts +++ b/react-virtual-kotlin/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { jsMainImplementation(kotlinWrappers.reactCore) } -val syncWithWrappers by tasks.creating(SyncWrappers::class) { +val syncWithWrappers by tasks.registering(SyncWrappers::class) { from(generatedDir) into(kotlinWrappersDir("kotlin-tanstack-virtual-core")) }