From 45bf15ee224bb7819de05598f7a9ba1d762afa53 Mon Sep 17 00:00:00 2001 From: Amin Bouzerda Date: Thu, 31 Oct 2024 15:40:55 +0100 Subject: [PATCH] spotless applied on build.gradle.kts files. --- .../bgw-docs-examples/build.gradle.kts | 10 ++++---- .../bgw-tetris-example/build.gradle.kts | 8 +++---- bgw-gui/build.gradle.kts | 23 ++++++++++++++++--- ...a.bgw.multiplatform-conventions.gradle.kts | 7 +++--- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/bgw-examples/bgw-docs-examples/build.gradle.kts b/bgw-examples/bgw-docs-examples/build.gradle.kts index 823bbe123..3490da6d8 100644 --- a/bgw-examples/bgw-docs-examples/build.gradle.kts +++ b/bgw-examples/bgw-docs-examples/build.gradle.kts @@ -18,12 +18,12 @@ plugins { id("tools.aqua.bgw.executable-conventions") } mavenMetadata { - name.set("BoardGameWork Docs Examples") - description.set("The BGW documentation examples.") + name.set("BoardGameWork Docs Examples") + description.set("The BGW documentation examples.") } dependencies { - implementation(project(":bgw-gui", configuration = "jvmRuntimeElements")) - implementation(project(":bgw-net:bgw-net-client")) - implementation(project(":bgw-net:bgw-net-common")) + implementation(project(":bgw-gui", configuration = "jvmRuntimeElements")) + implementation(project(":bgw-net:bgw-net-client")) + implementation(project(":bgw-net:bgw-net-common")) } diff --git a/bgw-examples/bgw-tetris-example/build.gradle.kts b/bgw-examples/bgw-tetris-example/build.gradle.kts index 598f9c485..5f0cb868d 100644 --- a/bgw-examples/bgw-tetris-example/build.gradle.kts +++ b/bgw-examples/bgw-tetris-example/build.gradle.kts @@ -18,12 +18,10 @@ plugins { id("tools.aqua.bgw.executable-conventions") } mavenMetadata { - name.set("BoardGameWork Tetris Example") - description.set("The BGW Tetris example.") + name.set("BoardGameWork Tetris Example") + description.set("The BGW Tetris example.") } -dependencies { - implementation(project(":bgw-gui", configuration = "jvmRuntimeElements")) -} +dependencies { implementation(project(":bgw-gui", configuration = "jvmRuntimeElements")) } application { mainClass.set("tools.aqua.bgw.examples.tetris.main.MainKt") } diff --git a/bgw-gui/build.gradle.kts b/bgw-gui/build.gradle.kts index 930e949fc..8b639ec94 100644 --- a/bgw-gui/build.gradle.kts +++ b/bgw-gui/build.gradle.kts @@ -1,4 +1,21 @@ +/* + * Copyright 2024 The BoardGameWork Authors + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + plugins { - id("tools.aqua.bgw.base-conventions") - id("tools.aqua.bgw.multiplatform-conventions") -} \ No newline at end of file + id("tools.aqua.bgw.base-conventions") + id("tools.aqua.bgw.multiplatform-conventions") +} diff --git a/buildSrc/src/main/kotlin/tools.aqua.bgw.multiplatform-conventions.gradle.kts b/buildSrc/src/main/kotlin/tools.aqua.bgw.multiplatform-conventions.gradle.kts index 1d721b462..2d03acc88 100644 --- a/buildSrc/src/main/kotlin/tools.aqua.bgw.multiplatform-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/tools.aqua.bgw.multiplatform-conventions.gradle.kts @@ -41,7 +41,8 @@ fun buildPropertyFile() { } } -fun generateProperties(prefix: String = "") = """ +fun generateProperties(prefix: String = "") = + """ package tools.aqua.bgw object Config { @@ -49,9 +50,7 @@ fun generateProperties(prefix: String = "") = """ } """.trimIndent() -tasks.withType { - buildPropertyFile() -} +tasks.withType { buildPropertyFile() } repositories { jcenter()