Skip to content

Commit

Permalink
Fix spotless testing for root-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Mar 4, 2024
1 parent b27aedc commit e9e7042
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/*
* This file is part of BlueMap, licensed under the MIT License (MIT).
*
* Copyright (c) Blue (Lukas Rieger) <https://bluecolored.de>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package de.bluecolored.bluemap.core.resources.resourcepack.texture;

import com.google.gson.Gson;
Expand Down
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ tasks.register("clean") {

tasks.register("build") {
gradle.includedBuilds.forEach {
if (it.name == "BlueMapCore") return@forEach
if (it.name == "BlueMapCommon") return@forEach

dependsOn(it.task(":release"))
}
}
Expand All @@ -39,6 +42,9 @@ tasks.register("spotlessCheck") {

tasks.register("publish") {
gradle.includedBuilds.forEach {
if (it.name == "BlueMapCore") return@forEach
if (it.name == "BlueMapCommon") return@forEach

dependsOn(it.task(":publish"))
}
}
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ rootProject.name = "BlueMap"
val releaseNotesFile = file("release.md")
if (!releaseNotesFile.exists()) releaseNotesFile.createNewFile();

// bluemap
includeBuild("BlueMapCore")
includeBuild("BlueMapCommon")

// implementations
includeBuild("implementations/cli")

Expand Down

0 comments on commit e9e7042

Please sign in to comment.