Skip to content

Commit

Permalink
Merge branch 'ms5' into 'beta'
Browse files Browse the repository at this point in the history
Ms5

See merge request Griefed/ServerPackCreator!552
  • Loading branch information
Griefed committed Dec 1, 2023
2 parents 9200a19 + 3542897 commit 1c45bfa
Show file tree
Hide file tree
Showing 40 changed files with 273 additions and 407 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/github-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -104,11 +104,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -161,11 +161,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -221,12 +221,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -317,11 +317,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -374,12 +374,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -102,11 +102,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -159,11 +159,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -219,12 +219,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -314,11 +314,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true

- name: Grant execute permission for gradlew
Expand Down Expand Up @@ -371,12 +371,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -555,11 +555,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
id: branch-name
uses: tj-actions/[email protected]

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -62,11 +62,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -108,11 +108,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -158,12 +158,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -242,11 +242,11 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down Expand Up @@ -288,12 +288,12 @@ jobs:
fetch-depth: 0

# BUILD PROJECT AND PUBLISH
- name: Set up JDK 17
- name: Set up JDK 21
id: java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-version: '21'
check-latest: true
cache: 'gradle'

Expand Down
16 changes: 8 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ workflow:

Build Test:
stage: Tests
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
before_script:
- echo "**** Running in $CI_JOB_ID ****"
- echo "**** Java version ****"
Expand Down Expand Up @@ -119,7 +119,7 @@ Generate Release:

Build Release:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Build Test
artifacts: false
Expand Down Expand Up @@ -168,7 +168,7 @@ Build Release:

Sign Java Publication:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Build Release
artifacts: false
Expand Down Expand Up @@ -206,7 +206,7 @@ Sign Java Publication:

Publish GitHub:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Sign Java Publication
optional: false
Expand Down Expand Up @@ -238,7 +238,7 @@ Publish GitHub:

Publish GitLab:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Sign Java Publication
optional: false
Expand Down Expand Up @@ -270,7 +270,7 @@ Publish GitLab:

Publish GitGriefed:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Sign Java Publication
optional: false
Expand Down Expand Up @@ -302,7 +302,7 @@ Publish GitGriefed:

Publish OSSRH:
stage: Build Release
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
needs:
- job: Sign Java Publication
optional: false
Expand Down Expand Up @@ -380,7 +380,7 @@ Publish OSSRH:

pages:
stage: Documentation
image: docker.griefed.dev/eclipse-temurin:17-jdk
image: docker.griefed.dev/eclipse-temurin:21-jdk
allow_failure: true
before_script:
- chmod +x gradlew
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Should you at any point want to revisit said guide, simply hit *About -> Step-By

##### Required:

* Using the JAR-file release requires Java 17.
* Using the JAR-file release requires Java 21.
* Working internet connection recommended.

The installers ship their own Java installations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.griefed.common.gradle.constant

// is used to set the target java version
const val JDK_VERSION = "17"
const val JDK_VERSION = "21"

// is used to set the "languageVersion" and "apiVersion" in KotlinCompile
// should be the same as the embedded Kotlin runtime version in Gradle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ repositories {
kotlin {
jvm {
compilations.all {
val list = kotlinOptions.freeCompilerArgs.toMutableList()
list.add("-Xexpect-actual-classes")
kotlinOptions.freeCompilerArgs = list.toList()
kotlinOptions.allWarningsAsErrors = false
kotlinOptions.apiVersion = KOTLIN_VERSION
kotlinOptions.jvmTarget = JDK_VERSION
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kotlin.js.generate.executable.default=false
kotlin.build.report.enable=true
kotlinVersion=1.9.21
kotlinMajor=1.9
jdkVersion=17
jdkVersion=21

group=de.griefed.serverpackcreator
version=dev
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading

0 comments on commit 1c45bfa

Please sign in to comment.