Skip to content

Commit

Permalink
move to de.cytooxien namespace / github maven package repo
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMistkaefer committed May 19, 2024
1 parent a17d2b1 commit 2ab80e7
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 41 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Publish to GitHub Maven

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 '<settings><servers><server><id>github</id><username>${env.GITHUB_ACTOR}</username><password>${{ secrets.GITHUB_TOKEN }}</password></server></servers></settings>' > $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 }}
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,33 @@ This is the repository of the Cytooxien Realm API. Here you can find the wiki wh
Repository:
```xml
<repository>
<id>exceptionflug</id>
<url>https://mvn.exceptionflug.de/repository/exceptionflug-public/</url>
<id>cytooxien-realms-api</id>
<url>https://maven.pkg.github.com/Cytooxien/Realms-API</url>
</repository>
```
Dependencies:
```xml
<!-- Actual RealmsAPI -->
<dependency>
<groupId>de.exceptionflug</groupId>
<groupId>de.cytooxien</groupId>
<artifactId>realms-api</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Cytooxien Realms Display System -->
<dependency>
<groupId>de.cytooxien.realms</groupId>
<artifactId>realms-spigot-display</artifactId>
<version>0.1</version>
<scope>provided</scope>
</dependency>
```

## Gradle
Repository:
```gradle
repositories {
maven {
url 'https://mvn.exceptionflug.de/repository/exceptionflug-public/'
url 'https://maven.pkg.github.com/Cytooxien/Realms-API'
}
}
```
Dependencies:
```gradle
dependencies {
<!-- Actual RealmsAPI -->
implementation 'de.exceptionflug:realms-api:1.2-20211008.144955-5'
<!-- Cytooxien Realms Display System -->
implementation 'de.cytooxien.realms:realms-spigot-display:0.1'
implementation 'de.exceptionflug:realms-api:1.3-SNAPSHOT'
}
```

Expand Down
16 changes: 9 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>de.exceptionflug</groupId>
<groupId>de.cytooxien</groupId>
<artifactId>realms-api</artifactId>
<version>2.0-SNAPSHOT</version>
<version>3.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand All @@ -15,12 +15,14 @@

<distributionManagement>
<repository>
<id>exceptionflug</id>
<url>https://mvn.exceptionflug.de/repository/exceptionflug-public/</url>
<id>github</id>
<name>GitHub Cytooxien Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Cytooxien/Realms-API</url>
</repository>
<snapshotRepository>
<id>exceptionflug</id>
<url>https://mvn.exceptionflug.de/repository/exceptionflug-public/</url>
<id>github</id>
<name>GitHub Cytooxien Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Cytooxien/Realms-API</url>
</snapshotRepository>
</distributionManagement>

Expand Down Expand Up @@ -96,4 +98,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.exceptionflug.realms.api;
package de.cytooxien.realms.api;

import com.mojang.authlib.properties.Property;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.exceptionflug.realms.api.model;
package de.cytooxien.realms.api.model;

import net.kyori.adventure.text.Component;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.exceptionflug.realms.api.model;
package de.cytooxien.realms.api.model;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.exceptionflug.realms.api.world;
package de.cytooxien.realms.api.world;

/**
* Date: 08.10.2021
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.exceptionflug.realms.api.world;
package de.cytooxien.realms.api.world;

/**
* Date: 08.10.2021
Expand Down

0 comments on commit 2ab80e7

Please sign in to comment.