Skip to content

Commit

Permalink
spotless applied on build.gradle.kts files.
Browse files Browse the repository at this point in the history
  • Loading branch information
abouzerda committed Oct 31, 2024
1 parent aad1f80 commit 45bf15e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
10 changes: 5 additions & 5 deletions bgw-examples/bgw-docs-examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
8 changes: 3 additions & 5 deletions bgw-examples/bgw-tetris-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
23 changes: 20 additions & 3 deletions bgw-gui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
}
id("tools.aqua.bgw.base-conventions")
id("tools.aqua.bgw.multiplatform-conventions")
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ fun buildPropertyFile() {
}
}

fun generateProperties(prefix: String = "") = """
fun generateProperties(prefix: String = "") =
"""
package tools.aqua.bgw
object Config {
val USE_SOCKETS = ${useSockets ?: "true"}
}
""".trimIndent()

tasks.withType<KotlinCompile> {
buildPropertyFile()
}
tasks.withType<KotlinCompile> { buildPropertyFile() }

repositories {
jcenter()
Expand Down

0 comments on commit 45bf15e

Please sign in to comment.