Skip to content

Commit 5c351da

Browse files
theEvilReaperrenovate[bot]TheMeinerLP
authored
Prepare 0.6.1 release (#34)
* Update actions/checkout action to v5 (#26) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update actions/setup-java action to v5 * Merge pull request #28 from OneLiteFeatherNET/feature/packageInfo Overhaul NotNull annotation usage * Update Gradle to v9.1.0 * Update dependency net.onelitefeather:mycelium-bom to v1.4.4 (#30) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update gradle/actions action to v5 (#31) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update version from the Aves dependency * Update dependency net.onelitefeather:mycelium-bom to v1.4.5 (#32) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Remove publishdata plugin usage (#33) * Remove publish data definition * Remove publish data usage --------- Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com> * Update publish trigger * Bump patch version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Phillipp Glanz <6745190+TheMeinerLP@users.noreply.github.com> Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com>
1 parent 67db697 commit 5c351da

19 files changed

+58
-74
lines changed

.github/workflows/build-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
- name: Setup Java
18-
uses: actions/setup-java@v4
18+
uses: actions/setup-java@v5
1919
with:
2020
distribution: temurin
2121
java-version: 21

.github/workflows/main-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919
steps:
2020
- name: Checkout Repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
- name: Validate Gradle Wrapper
23-
uses: gradle/actions/wrapper-validation@v4
23+
uses: gradle/actions/wrapper-validation@v5
2424
- name: Setup Java
25-
uses: actions/setup-java@v4
25+
uses: actions/setup-java@v5
2626
with:
2727
distribution: temurin
2828
java-version: 21

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Publish JAR
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- develop
5+
tags:
6+
- '**'
87
jobs:
98
build:
109
runs-on: ubuntu-latest
@@ -13,12 +12,14 @@ jobs:
1312
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
1413
steps:
1514
- name: Checkout repository
16-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1716
- name: Set up JDK 21
18-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1918
with:
2019
distribution: 'temurin'
2120
java-version: '21'
21+
- name: Setup Gradle
22+
uses: gradle/actions/setup-gradle@v5
2223
- name: Build with Gradle
2324
run: ./gradlew build
2425
- name: Publish to Maven

build.gradle.kts

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ plugins {
33
jacoco
44
`java-library`
55
`maven-publish`
6-
alias(libs.plugins.publishdata)
76
}
87

98
group = "net.onelitefeather"
10-
version = "0.6.0"
9+
version = "0.6.1"
1110

1211
java {
1312
toolchain {
@@ -31,13 +30,6 @@ dependencies {
3130
testRuntimeOnly(libs.junit.engine)
3231
}
3332

34-
publishData {
35-
addMainRepo("https://repo.onelitefeather.dev/onelitefeather-releases")
36-
addMasterRepo("https://repo.onelitefeather.dev/onelitefeather-releases")
37-
addSnapshotRepo("https://repo.onelitefeather.dev/onelitefeather-snapshots")
38-
publishTask("jar")
39-
}
40-
4133
tasks {
4234
compileJava {
4335
options.encoding = "UTF-8"
@@ -60,13 +52,10 @@ tasks {
6052
}
6153

6254
publishing {
63-
publications {
64-
create<MavenPublication>("maven") {
65-
// configure the publication as defined previously.
66-
publishData.configurePublication(this)
67-
version = publishData.getVersion(false)
68-
}
55+
publications.create<MavenPublication>("maven") {
56+
from(components["java"])
6957
}
58+
7059
repositories {
7160
maven {
7261
authentication {
@@ -75,11 +64,12 @@ publishing {
7564
password = System.getenv("ONELITEFEATHER_MAVEN_PASSWORD")
7665
}
7766
}
78-
7967
name = "OneLiteFeatherRepository"
80-
// Get the detected repository from the publish data
81-
url = uri(publishData.getRepository())
68+
url = if (project.version.toString().contains("SNAPSHOT")) {
69+
uri("https://repo.onelitefeather.dev/onelitefeather-snapshots")
70+
} else {
71+
uri("https://repo.onelitefeather.dev/onelitefeather-releases")
72+
}
8273
}
8374
}
8475
}
85-

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle.kts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
rootProject.name = "guira"
22

3-
pluginManagement {
4-
repositories {
5-
gradlePluginPortal()
6-
maven("https://eldonexus.de/repository/maven-public/")
7-
}
8-
}
9-
103
dependencyResolutionManagement {
114
repositories {
125
mavenCentral()
@@ -28,9 +21,8 @@ dependencyResolutionManagement {
2821
}
2922
versionCatalogs {
3023
create("libs") {
31-
version("aves", "1.11.1")
32-
version("publishdata", "1.4.0")
33-
version("bom", "1.4.3")
24+
version("aves", "1.11.2")
25+
version("bom", "1.4.5")
3426

3527
library("mycelium.bom", "net.onelitefeather", "mycelium-bom").versionRef("bom")
3628

@@ -43,8 +35,6 @@ dependencyResolutionManagement {
4335
library("junit.engine", "org.junit.jupiter", "junit-jupiter-engine").withoutVersion()
4436
library("junit.platform.launcher", "org.junit.platform", "junit-platform-launcher").withoutVersion()
4537
library("jetbrains.annotation", "org.jetbrains", "annotations").withoutVersion()
46-
47-
plugin("publishdata", "de.chojo.publishdata").versionRef("publishdata")
4838
}
4939
}
5040
}

src/main/java/net/onelitefeather/guira/SetupDataService.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import net.onelitefeather.guira.data.SetupData;
44
import org.jetbrains.annotations.Contract;
5-
import org.jetbrains.annotations.NotNull;
65
import org.jetbrains.annotations.Nullable;
76
import org.jetbrains.annotations.UnmodifiableView;
87

@@ -27,7 +26,7 @@ public interface SetupDataService {
2726
* @return a new instance of SetupDataService
2827
*/
2928
@Contract(pure = true)
30-
static @NotNull SetupDataService create() {
29+
static SetupDataService create() {
3130
return new SetupDataServiceImpl();
3231
}
3332

@@ -50,30 +49,29 @@ public interface SetupDataService {
5049
* @param uuid the unique identifier for the setup data
5150
* @param data the setup data to add
5251
*/
53-
void add(@NotNull UUID uuid, @NotNull SetupData data);
52+
void add(UUID uuid, SetupData data);
5453

5554
/**
5655
* Removes the setup data associated with the given UUID.
5756
*
5857
* @param uuid the unique identifier for the setup data
5958
* @return an optional containing the removed setup data, or empty if not found
6059
*/
61-
@NotNull Optional<@Nullable SetupData> remove(@NotNull UUID uuid);
60+
Optional<@Nullable SetupData> remove(UUID uuid);
6261

6362
/**
6463
* Retrieves the setup data associated with the given UUID.
6564
*
6665
* @param uuid the unique identifier for the setup data
6766
* @return an optional containing the setup data, or empty if not found
6867
*/
69-
@NotNull Optional<@Nullable SetupData> get(@NotNull UUID uuid);
68+
Optional<@Nullable SetupData> get(UUID uuid);
7069

7170
/**
7271
* Returns an unmodifiable view of the setup data map.
7372
*
7473
* @return an unmodifiable view
7574
*/
76-
@NotNull
7775
@UnmodifiableView
7876
Map<UUID, SetupData> getView();
7977
}

src/main/java/net/onelitefeather/guira/SetupDataServiceImpl.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package net.onelitefeather.guira;
22

33
import net.onelitefeather.guira.data.SetupData;
4-
import org.jetbrains.annotations.NotNull;
54
import org.jetbrains.annotations.UnmodifiableView;
65

76
import java.util.Collections;
@@ -51,31 +50,31 @@ public boolean isEmpty() {
5150
* {@inheritDoc}
5251
*/
5352
@Override
54-
public void add(@NotNull UUID uuid, @NotNull SetupData data) {
53+
public void add(UUID uuid, SetupData data) {
5554
dataMap.put(uuid, data);
5655
}
5756

5857
/**
5958
* {@inheritDoc}
6059
*/
6160
@Override
62-
public @NotNull Optional<SetupData> remove(@NotNull UUID uuid) {
61+
public Optional<SetupData> remove(UUID uuid) {
6362
return Optional.ofNullable(this.dataMap.remove(uuid));
6463
}
6564

6665
/**
6766
* {@inheritDoc}
6867
*/
6968
@Override
70-
public @NotNull Optional<SetupData> get(@NotNull UUID uuid) {
69+
public Optional<SetupData> get(UUID uuid) {
7170
return Optional.ofNullable(this.dataMap.get(uuid));
7271
}
7372

7473
/**
7574
* {@inheritDoc}
7675
*/
7776
@Override
78-
public @NotNull @UnmodifiableView Map<UUID, SetupData> getView() {
77+
public @UnmodifiableView Map<UUID, SetupData> getView() {
7978
return Collections.unmodifiableMap(this.dataMap);
8079
}
8180
}

0 commit comments

Comments
 (0)