File tree Expand file tree Collapse file tree 8 files changed +48
-71
lines changed
common/src/main/resources
fabric/src/main/resources Expand file tree Collapse file tree 8 files changed +48
-71
lines changed Original file line number Diff line number Diff line change
1
+ name : Build with Gradle
2
+
3
+ on : [ push, pull_request ]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-24.04
8
+ steps :
9
+ - name : Checkout Repository
10
+ uses : actions/checkout@v4
11
+ - name : Validate Gradle Wrapper
12
+ uses : gradle/actions/wrapper-validation@v3
13
+ - name : Set up JDK 21
14
+ uses : actions/setup-java@v4
15
+ with :
16
+ distribution : ' temurin'
17
+ java-version : 21
18
+ check-latest : true
19
+ - name : Build with Gradle
20
+ run : ./gradlew build
21
+ - name : Upload artifacts to GitHub
22
+ uses : actions/upload-artifact@v4
23
+ with :
24
+ name : MidnightControls-Artifacts
25
+ path : /build/libs/
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Gradle Package
1
+ name : Publish to Modrinth
2
2
3
3
on :
4
- push :
5
- tags :
6
- - ' * '
4
+ release :
5
+ types :
6
+ - published
7
7
8
8
jobs :
9
- build :
10
- runs-on : ubuntu-latest
9
+ publish :
10
+ runs-on : ubuntu-24.04
11
11
steps :
12
- - uses : actions/checkout@v2
13
- - name : Set up JDK 16
14
- uses : actions/setup-java@v1
12
+ - name : Checkout Repository
13
+ uses : actions/checkout@v4
14
+ - name : Validate Gradle Wrapper
15
+ uses : gradle/actions/wrapper-validation@v3
16
+ - name : Set up JDK 21
17
+ uses : actions/setup-java@v4
15
18
with :
16
- java-version : 16
17
- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
18
- settings-path : ${{ github.workspace }} # location for the settings.xml file
19
-
20
- - name : Build with Gradle
21
- run : ./gradlew build
22
-
23
- - uses : actions/upload-artifact@v2
24
- with :
25
- name : Artifacts
26
- path : ./build/libs/
27
-
19
+ distribution : ' temurin'
20
+ java-version : 21
21
+ check-latest : true
28
22
# The USERNAME and PASSWORD need to correspond to the credentials environment variables used in
29
23
# the publishing section of your build.gradle
30
24
- name : Publish to GitHub Packages and other Mavens
38
32
midnightcontrols_MAVEN : ${{ secrets.MAVEN_URL }}
39
33
MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
40
34
MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
35
+ - name : Publish to Modrinth
36
+ env :
37
+ MODRINTH_TOKEN : ${{ secrets.MODRINTH_TOKEN }}
38
+ run : ./gradlew publishModrinth
Original file line number Diff line number Diff line change 8
8
[ ![ Version] ( https://img.shields.io/github/v/tag/TeamMidnightDust/MidnightControls?label=version&style=round )] ( https://github.com/TeamMidnightDust/MidnightControls/releases )
9
9
![ Environment: Client] ( https://img.shields.io/badge/environment-client-1976d2?style=round )
10
10
[ ![ Mod loader: Quilt/Fabric]] [ Quilt ]
11
- [ ![ Java 17 ] ( https://img.shields.io/badge/language-Java%2017 -9B599A.svg?style=round )] ( https://www.oracle.com/java/technologies/downloads/#java17 )
11
+ [ ![ Java 21 ] ( https://img.shields.io/badge/language-Java%2021 -9B599A.svg?style=round )] ( https://www.oracle.com/java/technologies/downloads/#java21 )
12
12
[ ![ GitHub license] ( https://img.shields.io/github/license/TeamMidnightDust/MidnightControls?style=round )] ( LICENSE )
13
13
14
14
A Fabric Minecraft mod which adds better controls, reach-around and controller support.
Original file line number Diff line number Diff line change 1
1
{
2
2
"required" : true ,
3
3
"package" : " eu.midnightdust.midnightcontrols.client.mixin" ,
4
- "compatibilityLevel" : " JAVA_16 " ,
4
+ "compatibilityLevel" : " JAVA_21 " ,
5
5
"client" : [
6
6
" ClickableWidgetAccessor" ,
7
7
" AdvancementsScreenAccessor" ,
Original file line number Diff line number Diff line change 2
2
"required" : true ,
3
3
"package" : " eu.midnightdust.midnightcontrols.client.compat.mixin" ,
4
4
"plugin" : " eu.midnightdust.midnightcontrols.client.compat.MidnightControlsMixinPlugin" ,
5
- "compatibilityLevel" : " JAVA_16 " ,
5
+ "compatibilityLevel" : " JAVA_21 " ,
6
6
"client" : [
7
7
" sodium.SodiumOptionsGUIAccessor"
8
8
],
Original file line number Diff line number Diff line change 54
54
"fabric" : " >=0.71.0" ,
55
55
"minecraft" : " >=1.20.5" ,
56
56
"obsidianui" : " >=0.2.5" ,
57
- "java" : " >=17 "
57
+ "java" : " >=21 "
58
58
},
59
59
"suggests" : {
60
60
"kontrolo" : " *"
You can’t perform that action at this time.
0 commit comments