Fix spotless testing for root-modules

This commit is contained in:
Lukas Rieger (Blue) 2024-03-04 13:10:00 +01:00
parent b27aedc4c2
commit e9e7042aed
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
3 changed files with 34 additions and 0 deletions

View File

@ -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; package de.bluecolored.bluemap.core.resources.resourcepack.texture;
import com.google.gson.Gson; import com.google.gson.Gson;

View File

@ -15,6 +15,9 @@ tasks.register("clean") {
tasks.register("build") { tasks.register("build") {
gradle.includedBuilds.forEach { gradle.includedBuilds.forEach {
if (it.name == "BlueMapCore") return@forEach
if (it.name == "BlueMapCommon") return@forEach
dependsOn(it.task(":release")) dependsOn(it.task(":release"))
} }
} }
@ -39,6 +42,9 @@ tasks.register("spotlessCheck") {
tasks.register("publish") { tasks.register("publish") {
gradle.includedBuilds.forEach { gradle.includedBuilds.forEach {
if (it.name == "BlueMapCore") return@forEach
if (it.name == "BlueMapCommon") return@forEach
dependsOn(it.task(":publish")) dependsOn(it.task(":publish"))
} }
} }

View File

@ -4,6 +4,10 @@ rootProject.name = "BlueMap"
val releaseNotesFile = file("release.md") val releaseNotesFile = file("release.md")
if (!releaseNotesFile.exists()) releaseNotesFile.createNewFile(); if (!releaseNotesFile.exists()) releaseNotesFile.createNewFile();
// bluemap
includeBuild("BlueMapCore")
includeBuild("BlueMapCommon")
// implementations // implementations
includeBuild("implementations/cli") includeBuild("implementations/cli")