Skip to content

Commit 6a57309

Browse files
committed
remove: remove value-providers module (moved to data-driven project)
1 parent 6085800 commit 6a57309

8 files changed

Lines changed: 22 additions & 402 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ on:
66
version:
77
description: 'Library version. ex: x.x.x, x.x.x-SNAPSHOT'
88
required: true
9-
module:
10-
description: 'Module to publish'
11-
required: true
12-
default: all
13-
type: choice
14-
options:
15-
- all
16-
- adventure
17-
- joml
18-
- paper
19-
- value-providers
209

2110
concurrency:
2211
group: ${{ github.workflow }}-${{ github.ref }}
@@ -30,44 +19,36 @@ jobs:
3019
name: Release
3120
runs-on: ubuntu-latest
3221
timeout-minutes: 3
22+
3323
steps:
34-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35-
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
25+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
3626
with:
3727
distribution: "adopt"
3828
java-version: 21
3929

4030
- name: Setup Gradle
41-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
31+
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884
4232

4333
- name: Build
4434
run: ./gradlew build
4535
env:
4636
VERSION: ${{ github.event.inputs.version }}
4737

4838
- name: Upload a Build Artifact
49-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
39+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
5040
with:
5141
path: modules/**/build/libs/*.jar
5242

53-
- name: Publish to azisaba repo
54-
run: |
55-
if [ "${{ github.event.inputs.module }}" = "all" ]; then
56-
./gradlew \
57-
:modules:adventure:publish \
58-
:modules:joml:publish \
59-
:modules:paper:publish \
60-
:modules:value-providers:publish
61-
else
62-
./gradlew :modules:${{ github.event.inputs.module }}:publish
63-
fi
43+
- name: Publish all modules
44+
run: ./gradlew publishAll
6445
env:
6546
VERSION: ${{ github.event.inputs.version }}
6647
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
6748
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
6849

6950
- name: Create release
70-
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
51+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b
7152
with:
7253
tag_name: ${{ github.event.inputs.version }}
7354
files: modules/**/build/libs/*.jar

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ version = System.getenv("VERSION") ?: "0.0.0-SNAPSHOT"
1111

1212
val kotlinx = libs.kotlinx
1313

14-
configure(subprojects.filter { it.childProjects.isEmpty() }) {
14+
val leafProjects = subprojects.filter { it.childProjects.isEmpty() }
15+
16+
configure(leafProjects) {
1517
group = rootProject.group
1618
version = rootProject.version
1719

@@ -48,7 +50,7 @@ configure(subprojects.filter { it.childProjects.isEmpty() }) {
4850
repositories {
4951
maven {
5052
name = "azisaba"
51-
url = if (version.toString().contains("SNAPSHOT")) {
53+
url = if (version.toString().endsWith("SNAPSHOT")) {
5254
uri("https://repo.azisaba.net/repository/maven-snapshots/")
5355
} else {
5456
uri("https://repo.azisaba.net/repository/maven-releases/")
@@ -61,3 +63,9 @@ configure(subprojects.filter { it.childProjects.isEmpty() }) {
6163
}
6264
}
6365
}
66+
67+
tasks.register("publishAll") {
68+
dependsOn(
69+
leafProjects.map { it.tasks.named("publish") }
70+
)
71+
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ adventure-api = { module = "net.kyori:adventure-api", version.ref = "adventure"
1616
adventure-text-minimessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "adventure" }
1717
adventure-text-serializers-gson = { module = "net.kyori:adventure-text-serializer-gson", version.ref = "adventure" }
1818
joml = { module = "org.joml:joml", version.ref = "joml" }
19-
paper-api = { module = "io.papermc.paper:paper-api", version.ref = "paper" }
19+
paper-api = { module = "io.papermc.paper:paper-api", version.ref = "paper" }

modules/value-providers/build.gradle.kts

Lines changed: 0 additions & 7 deletions
This file was deleted.

modules/value-providers/src/main/kotlin/net/azisaba/serialization/FloatProvider.kt

Lines changed: 0 additions & 94 deletions
This file was deleted.

modules/value-providers/src/main/kotlin/net/azisaba/serialization/IntProvider.kt

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)