From a26f57d249538c87fd896a03d931644720cd0520 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 18 Sep 2024 13:21:13 +0200 Subject: [PATCH] ci(java): require java 11 --- .github/workflows/java.yml | 4 ++++ dist/java/build.gradle | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index de9f339..8b9552a 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -31,6 +31,10 @@ jobs: - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '11' - uses: gradle/actions/setup-gradle@v4 with: gradle-version: "8.10" # Quotes required to prevent YAML converting to number diff --git a/dist/java/build.gradle b/dist/java/build.gradle index 35ca37a..f803a44 100644 --- a/dist/java/build.gradle +++ b/dist/java/build.gradle @@ -9,36 +9,36 @@ group = 'mp.code' version = '0.0.1' java { - sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 } import com.vanniktech.maven.publish.SonatypeHost mavenPublishing { - // publishToMavenCentral(SonatypeHost.S01) // for snapshots + //publishToMavenCentral(SonatypeHost.S01) // for snapshots publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // central repository - // publishToMavenCentral(SonatypeHost.DEFAULT) // ???? + // publishToMavenCentral(SonatypeHost.DEFAULT) // default signAllPublications() - coordinates("mp.code", "codemp", "0.0.1") + coordinates(project.group, rootProject.name, project.version) pom { - name = "codemp" - description = "a collaborative editor plugin ecosystem" + name = rootProject.name + description = "A collaborative editor plugin ecosystem" inceptionYear = "2022" url = "https://code.mp/" licenses { license { name = "The GNU General Public License v3.0" url = "https://www.gnu.org/licenses/gpl-3.0.txt" - distribution = "https://www.gnu.org/licenses/gpl-3.0.txt" } } developers { developer { id = "zaaarf" name = "zaaarf" + email = "zaaarf@codemp.dev" } } scm {