Skip to content

Commit 5f3e28e

Browse files
authored
Merge pull request #8 from MineInAbyss/develop
Build against 1.20, cleanup workflows
2 parents 4a49efa + 3233292 commit 5f3e28e

File tree

7 files changed

+30
-63
lines changed

7 files changed

+30
-63
lines changed

.github/workflows/gradle-ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Java CI with Gradle
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths-ignore:
8-
- '**.md'
94
pull_request:
105

116
concurrency:

.github/workflows/publish-packages.yml

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- develop
78
paths-ignore:
89
- '**.md'
910

@@ -14,44 +15,27 @@ jobs:
1415
steps:
1516
- uses: actions/checkout@v3
1617

17-
- name: Set up JDK
18-
uses: actions/setup-java@v3
18+
- uses: MineInAbyss/publish-action@master
1919
with:
20-
distribution: temurin
21-
java-version: 17
22-
cache: gradle
23-
24-
- name: Set env variable from latest maven version
25-
run: >
26-
echo "RELEASE_VERSION=$( \
27-
curl https://repo.mineinabyss.com/releases/com/mineinabyss/guiy-compose/maven-metadata.xml | \
28-
grep -oP '(?!<latest>)[\d\.]*(?=</latest>)' \
29-
)" >> $GITHUB_ENV
30-
31-
- name: Run gradle build and publish
32-
run: >
33-
gradle build publish
34-
-PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}
35-
36-
# - name: Publish documentation to GitHub Pages
37-
# uses: peaceiris/actions-gh-pages@v3
38-
# with:
39-
# github_token: ${{ secrets.GITHUB_TOKEN }}
40-
# publish_dir: ./build/dokka/htmlMultiModule
41-
# force_orphan: true
42-
43-
- name: Get version from gradle
44-
shell: bash
45-
id: extract_version
46-
run: |
47-
version=`gradle properties --console=plain -q | grep "^version:" | awk '{printf $2}'`
48-
echo "::set-output name=version::$version"
49-
50-
- name: Create GitHub Release
51-
uses: marvinpinto/action-automatic-releases@latest
52-
with:
53-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
54-
prerelease: false
55-
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
56-
files: |
57-
build/libs/*[0-9].jar
20+
maven-metadata-url: https://repo.mineinabyss.com/releases/com/mineinabyss/guiy-compose/maven-metadata.xml
21+
# pages-path: build/dokka/htmlMultiModule/
22+
# dokka: dokkaHtmlMultiModule
23+
maven-username: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
24+
maven-password: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
25+
release-files: |
26+
${{ github.workspace }}/publish/*.jar
27+
28+
deploy:
29+
permissions:
30+
pages: write
31+
id-token: write
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
if: ${{ github.ref == 'refs/heads/master' }}
36+
runs-on: ubuntu-latest
37+
needs: build
38+
steps:
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v1

build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33
val idofrontVersion: String by project
44

55
plugins {
6-
kotlin("jvm")
7-
id("com.mineinabyss.conventions.kotlin")
6+
alias(libs.plugins.mia.kotlin.jvm)
87
id("com.mineinabyss.conventions.papermc")
98
id("com.mineinabyss.conventions.nms")
109
id("com.mineinabyss.conventions.autoversion")
1110
id("com.mineinabyss.conventions.publication")
1211
id("com.mineinabyss.conventions.testing")
1312
id("com.mineinabyss.conventions.copyjar")
14-
id("org.jetbrains.compose")
15-
id("com.github.johnrengelman.shadow") version "7.1.2"
13+
alias(libs.plugins.compose)
1614
}
1715

1816
tasks.withType<KotlinCompile> {

gradle.properties

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
kotlin.code.style=official
22
group=com.mineinabyss
3-
version=0.8
4-
kotlinVersion=1.7.10
5-
composeVersion=1.2.0
6-
serverVersion=1.19.2-R0.1-SNAPSHOT
7-
idofrontVersion=0.14.7
3+
version=0.9
4+
idofrontVersion=0.18.14
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

guiy-example/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
val idofrontVersion: String by project
22

33
plugins {
4-
id("com.mineinabyss.conventions.kotlin")
4+
alias(libs.plugins.mia.kotlin.jvm)
55
id("com.mineinabyss.conventions.papermc")
66
id("com.mineinabyss.conventions.copyjar")
77
id("org.jetbrains.compose")

settings.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ pluginManagement {
77
maven("https://repo.papermc.io/repository/maven-public/")
88
}
99

10-
plugins {
11-
val kotlinVersion: String by settings
12-
val composeVersion: String by settings
13-
kotlin("jvm") version kotlinVersion
14-
id("org.jetbrains.compose") version composeVersion
15-
}
16-
1710
val idofrontVersion: String by settings
1811

1912
resolutionStrategy {

0 commit comments

Comments
 (0)