Skip to content

Commit ab6d0ca

Browse files
committed
Fix maven publishing, update wrapper, update github actions config.
1 parent 8d00dc8 commit ab6d0ca

File tree

5 files changed

+14
-30
lines changed

5 files changed

+14
-30
lines changed

.github/workflows/gradlebuild.yml renamed to .github/workflows/gradle_build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Set up JDK 16
11-
uses: actions/setup-java@v1
10+
- name: Set up JDK 17
11+
uses: actions/setup-java@v2
1212
with:
13-
java-version: 16
14-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
15-
settings-path: ${{ github.workspace }} # location for the settings.xml file
13+
java-version: 17
14+
distribution: 'temurin'
1615

1716
- name: Build with Gradle
1817
run: ./gradlew build

.github/workflows/gradlepublish.yml renamed to .github/workflows/maven_publish.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Gradle Package
1+
name: Gradle Maven Publish
22

33
on:
44
push:
@@ -10,12 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up JDK 16
14-
uses: actions/setup-java@v1
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v2
1515
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
16+
java-version: 17
17+
distribution: 'temurin'
1918

2019
# The USERNAME and PASSWORD need to correspond to the credentials environment variables used in
2120
# the publishing section of your build.gradle

.github/workflows/modrinth_update.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up JDK 16
14-
uses: actions/setup-java@v1
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v2
1515
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
16+
java-version: 17
17+
distribution: 'temurin'
1918

2019
- name: Build with Gradle
2120
env:

build.gradle

-13
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,6 @@ publishing {
214214
name = "LambDynamicLights"
215215
description = "Adds dynamic lights to the game."
216216
}
217-
218-
pom.withXml {
219-
def dependenciesNode = asNode().appendNode('dependencies')
220-
221-
configurations.shadow.allDependencies.each {
222-
def dependencyNode = dependenciesNode.appendNode('dependency')
223-
224-
dependencyNode.appendNode('groupId', it.group)
225-
dependencyNode.appendNode('artifactId', it.name)
226-
dependencyNode.appendNode('version', it.version)
227-
dependencyNode.appendNode('scope', 'compile')
228-
}
229-
}
230217
}
231218
}
232219

+1-1
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.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)