diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml new file mode 100644 index 0000000..dec2524 --- /dev/null +++ b/.github/workflows/build-and-publish.yml @@ -0,0 +1,38 @@ +name: Build and Publish to GitHub Maven + +on: + push: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '17' + cache: maven + + - name: Set up Maven settings + run: | + mkdir -p $HOME/.m2 + echo 'github${env.GITHUB_ACTOR}${{ secrets.GITHUB_TOKEN }}' > $HOME/.m2/settings.xml + shell: bash + env: + GITHUB_ACTOR: ${{ github.actor }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build with Maven + run: mvn clean install + + - name: Publish to GitHub Packages + run: mvn deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index a32e264..b19cf34 100644 --- a/README.md +++ b/README.md @@ -6,26 +6,18 @@ This is the repository of the Cytooxien Realm API. Here you can find the wiki wh Repository: ```xml - exceptionflug - https://mvn.exceptionflug.de/repository/exceptionflug-public/ + cytooxien-realms-api + https://maven.pkg.github.com/Cytooxien/Realms-API ``` Dependencies: ```xml - - de.exceptionflug + de.cytooxien realms-api - 1.2-SNAPSHOT + 3.0-SNAPSHOT provided - - - de.cytooxien.realms - realms-spigot-display - 0.1 - provided - ``` ## Gradle @@ -33,17 +25,14 @@ Repository: ```gradle repositories { maven { - url 'https://mvn.exceptionflug.de/repository/exceptionflug-public/' + url 'https://maven.pkg.github.com/Cytooxien/Realms-API' } } ``` Dependencies: ```gradle dependencies { - - implementation 'de.exceptionflug:realms-api:1.2-20211008.144955-5' - - implementation 'de.cytooxien.realms:realms-spigot-display:0.1' + implementation 'de.cytooxien:realms-api:3.0-SNAPSHOT' } ``` diff --git a/pom.xml b/pom.xml index ce70bff..ba32b3f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - de.exceptionflug + de.cytooxien realms-api - 2.0-SNAPSHOT + 3.0-SNAPSHOT 17 @@ -15,13 +15,10 @@ - exceptionflug - https://mvn.exceptionflug.de/repository/exceptionflug-public/ + github + GitHub Cytooxien Apache Maven Packages + https://maven.pkg.github.com/Cytooxien/Realms-API - - exceptionflug - https://mvn.exceptionflug.de/repository/exceptionflug-public/ - @@ -96,4 +93,4 @@ - \ No newline at end of file + diff --git a/src/main/java/de/exceptionflug/realms/api/Action.java b/src/main/java/de/cytooxien/realms/api/Action.java similarity index 97% rename from src/main/java/de/exceptionflug/realms/api/Action.java rename to src/main/java/de/cytooxien/realms/api/Action.java index 0e2a7e8..e554e3e 100644 --- a/src/main/java/de/exceptionflug/realms/api/Action.java +++ b/src/main/java/de/cytooxien/realms/api/Action.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; /** * An {@link Action} is the result of most of the methods provided by the api. diff --git a/src/main/java/de/exceptionflug/realms/api/DisplayProvider.java b/src/main/java/de/cytooxien/realms/api/DisplayProvider.java similarity index 98% rename from src/main/java/de/exceptionflug/realms/api/DisplayProvider.java rename to src/main/java/de/cytooxien/realms/api/DisplayProvider.java index 5f1e525..bbdc589 100644 --- a/src/main/java/de/exceptionflug/realms/api/DisplayProvider.java +++ b/src/main/java/de/cytooxien/realms/api/DisplayProvider.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; import net.kyori.adventure.text.Component; import org.bukkit.entity.Player; diff --git a/src/main/java/de/exceptionflug/realms/api/PlayerInformationProvider.java b/src/main/java/de/cytooxien/realms/api/PlayerInformationProvider.java similarity index 97% rename from src/main/java/de/exceptionflug/realms/api/PlayerInformationProvider.java rename to src/main/java/de/cytooxien/realms/api/PlayerInformationProvider.java index 05d940c..ae0e97d 100644 --- a/src/main/java/de/exceptionflug/realms/api/PlayerInformationProvider.java +++ b/src/main/java/de/cytooxien/realms/api/PlayerInformationProvider.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; import com.mojang.authlib.properties.Property; diff --git a/src/main/java/de/exceptionflug/realms/api/RealmInformationProvider.java b/src/main/java/de/cytooxien/realms/api/RealmInformationProvider.java similarity index 98% rename from src/main/java/de/exceptionflug/realms/api/RealmInformationProvider.java rename to src/main/java/de/cytooxien/realms/api/RealmInformationProvider.java index 345cd37..0a7480a 100644 --- a/src/main/java/de/exceptionflug/realms/api/RealmInformationProvider.java +++ b/src/main/java/de/cytooxien/realms/api/RealmInformationProvider.java @@ -1,6 +1,6 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; -import de.exceptionflug.realms.api.model.Limits; +import de.cytooxien.realms.api.model.Limits; import net.kyori.adventure.text.Component; import java.util.UUID; diff --git a/src/main/java/de/exceptionflug/realms/api/RealmPermissionProvider.java b/src/main/java/de/cytooxien/realms/api/RealmPermissionProvider.java similarity index 98% rename from src/main/java/de/exceptionflug/realms/api/RealmPermissionProvider.java rename to src/main/java/de/cytooxien/realms/api/RealmPermissionProvider.java index d00613b..6d298a5 100644 --- a/src/main/java/de/exceptionflug/realms/api/RealmPermissionProvider.java +++ b/src/main/java/de/cytooxien/realms/api/RealmPermissionProvider.java @@ -1,6 +1,6 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; -import de.exceptionflug.realms.api.model.Group; +import de.cytooxien.realms.api.model.Group; import java.util.Comparator; import java.util.List; diff --git a/src/main/java/de/exceptionflug/realms/api/RealmWorldProvider.java b/src/main/java/de/cytooxien/realms/api/RealmWorldProvider.java similarity index 95% rename from src/main/java/de/exceptionflug/realms/api/RealmWorldProvider.java rename to src/main/java/de/cytooxien/realms/api/RealmWorldProvider.java index 7b36b4c..e92e350 100644 --- a/src/main/java/de/exceptionflug/realms/api/RealmWorldProvider.java +++ b/src/main/java/de/cytooxien/realms/api/RealmWorldProvider.java @@ -1,7 +1,7 @@ -package de.exceptionflug.realms.api; +package de.cytooxien.realms.api; -import de.exceptionflug.realms.api.model.DefinedWorld; -import de.exceptionflug.realms.api.world.WorldRule; +import de.cytooxien.realms.api.model.DefinedWorld; +import de.cytooxien.realms.api.world.WorldRule; import org.bukkit.World; import java.util.List; diff --git a/src/main/java/de/exceptionflug/realms/api/model/DefinedWorld.java b/src/main/java/de/cytooxien/realms/api/model/DefinedWorld.java similarity index 94% rename from src/main/java/de/exceptionflug/realms/api/model/DefinedWorld.java rename to src/main/java/de/cytooxien/realms/api/model/DefinedWorld.java index 0b95325..170e82e 100644 --- a/src/main/java/de/exceptionflug/realms/api/model/DefinedWorld.java +++ b/src/main/java/de/cytooxien/realms/api/model/DefinedWorld.java @@ -1,7 +1,7 @@ -package de.exceptionflug.realms.api.model; +package de.cytooxien.realms.api.model; -import de.exceptionflug.realms.api.world.WorldPreset; -import de.exceptionflug.realms.api.world.WorldRule; +import de.cytooxien.realms.api.world.WorldPreset; +import de.cytooxien.realms.api.world.WorldRule; import java.io.File; import java.util.Map; diff --git a/src/main/java/de/exceptionflug/realms/api/model/Group.java b/src/main/java/de/cytooxien/realms/api/model/Group.java similarity index 98% rename from src/main/java/de/exceptionflug/realms/api/model/Group.java rename to src/main/java/de/cytooxien/realms/api/model/Group.java index 21c7392..10383db 100644 --- a/src/main/java/de/exceptionflug/realms/api/model/Group.java +++ b/src/main/java/de/cytooxien/realms/api/model/Group.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api.model; +package de.cytooxien.realms.api.model; import net.kyori.adventure.text.Component; diff --git a/src/main/java/de/exceptionflug/realms/api/model/Limits.java b/src/main/java/de/cytooxien/realms/api/model/Limits.java similarity index 99% rename from src/main/java/de/exceptionflug/realms/api/model/Limits.java rename to src/main/java/de/cytooxien/realms/api/model/Limits.java index f40f231..769e8ac 100644 --- a/src/main/java/de/exceptionflug/realms/api/model/Limits.java +++ b/src/main/java/de/cytooxien/realms/api/model/Limits.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api.model; +package de.cytooxien.realms.api.model; import java.util.Objects; diff --git a/src/main/java/de/exceptionflug/realms/api/world/WorldPreset.java b/src/main/java/de/cytooxien/realms/api/world/WorldPreset.java similarity index 81% rename from src/main/java/de/exceptionflug/realms/api/world/WorldPreset.java rename to src/main/java/de/cytooxien/realms/api/world/WorldPreset.java index 84370c7..a471ea4 100644 --- a/src/main/java/de/exceptionflug/realms/api/world/WorldPreset.java +++ b/src/main/java/de/cytooxien/realms/api/world/WorldPreset.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api.world; +package de.cytooxien.realms.api.world; /** * Date: 08.10.2021 diff --git a/src/main/java/de/exceptionflug/realms/api/world/WorldRule.java b/src/main/java/de/cytooxien/realms/api/world/WorldRule.java similarity index 94% rename from src/main/java/de/exceptionflug/realms/api/world/WorldRule.java rename to src/main/java/de/cytooxien/realms/api/world/WorldRule.java index c98d4bf..7b814a2 100644 --- a/src/main/java/de/exceptionflug/realms/api/world/WorldRule.java +++ b/src/main/java/de/cytooxien/realms/api/world/WorldRule.java @@ -1,4 +1,4 @@ -package de.exceptionflug.realms.api.world; +package de.cytooxien.realms.api.world; /** * Date: 08.10.2021