Skip to content

Commit

Permalink
Release 2.4.3 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs authored Mar 10, 2023
2 parents bed2dff + 4ec96f1 commit 588b7dc
Show file tree
Hide file tree
Showing 211 changed files with 309 additions and 247 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish_to_nexus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
with:
distribution: adopt
java-version: 17
- name: Check licence
run: ./gradlew licenseCheck
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
run: ./gradlew test
run: ./gradlew test build
- name: Publish to eldonexus
run: ./gradlew publishMavenPublicationToEldoNexusRepository
env:
PUBLIC: TRUE
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
6 changes: 2 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
with:
distribution: adopt
java-version: 17
- name: Check licence
run: ./gradlew licenseCheck
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew --build-cache build
7 changes: 5 additions & 2 deletions HEADER.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SPDX-License-Identifier: AGPL-3.0-only
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) EldoriaRPG Team and Contributor
*/

Copyright (C) 2021 EldoriaRPG Team and Contributor
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import com.diffplug.gradle.spotless.SpotlessPlugin
import de.chojo.PublishData
import org.cadixdev.gradle.licenser.Licenser

plugins {
java
id("org.cadixdev.licenser") version "0.6.1"
id("de.chojo.publishdata") version "1.0.9"
id("com.diffplug.spotless") version "6.16.0"
id("de.chojo.publishdata") version "1.2.0"
}

group = "de.eldoria"
version = "2.4.2"
version = "2.4.3"

subprojects {
apply {
plugin<Licenser>()
plugin<SpotlessPlugin>()
plugin<JavaPlugin>()
plugin<PublishData>()
}
Expand All @@ -25,9 +25,11 @@ allprojects {
maven("https://eldonexus.de/repository/maven-proxies/")
}

license {
header(rootProject.file("HEADER.txt"))
include("**/*.java")
spotless{
java{
licenseHeaderFile(rootProject.file("HEADER.txt"))
target("**/*.java")
}
}

java {
Expand All @@ -38,7 +40,7 @@ allprojects {

dependencies{
compileOnly("org.spigotmc", "spigot-api", "1.16.5-R0.1-SNAPSHOT")
compileOnly("org.jetbrains", "annotations", "24.0.0")
compileOnly("org.jetbrains", "annotations", "24.0.1")
// Due to incompatibility by the yaml versions defined by world edit, fawe and bukkit we need to exclude it everywhere and add our own version...
compileOnly("org.yaml", "snakeyaml", "1.33")
compileOnly("com.sk89q.worldedit", "worldedit-bukkit", "7.2.13") {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
2 changes: 1 addition & 1 deletion schematicbrushreborn-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ publishing {

tasks {
test {
dependsOn(licenseCheck)
dependsOn(spotlessCheck)
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush;
Expand All @@ -20,6 +20,7 @@
import de.eldoria.schematicbrush.rendering.BlockChangeCollector;
import de.eldoria.schematicbrush.schematics.SchematicRegistry;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable;

import java.util.Optional;

Expand Down Expand Up @@ -70,6 +71,7 @@ public interface SchematicBrush extends Brush {
*
* @return next paste
*/
@Nullable
BrushPaste nextPaste();

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.flip;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.modifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.modifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.modifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.provider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.rotation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.schematics;

import de.eldoria.eldoutilities.container.Pair;
import de.eldoria.schematicbrush.brush.SchematicBrush;
import de.eldoria.schematicbrush.brush.config.BrushSettings;
import de.eldoria.schematicbrush.brush.config.SchematicSet;
import de.eldoria.schematicbrush.brush.config.util.Randomable;
import de.eldoria.schematicbrush.schematics.Schematic;
Expand All @@ -17,4 +18,9 @@

public interface SchematicSelection extends Randomable, ConfigurationSerializable {
Optional<Pair<SchematicSet, Schematic>> nextSchematic(SchematicBrush brush, boolean force);

default Optional<Pair<SchematicSet, Schematic>> getDefaultSchem(SchematicBrush brush) {
BrushSettings settings = brush.settings();
return Optional.of(Pair.of(settings.schematicSets().get(0), settings.schematicSets().get(0).schematics().get(0)));
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.selector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
*
* Copyright (C) 2021 EldoriaRPG Team and Contributor
* Copyright (C) EldoriaRPG Team and Contributor
*/

package de.eldoria.schematicbrush.brush.config.util;
Expand Down
Loading

0 comments on commit 588b7dc

Please sign in to comment.