ci(java): require java 11

This commit is contained in:
zaaarf 2024-09-18 13:21:13 +02:00
parent 92a48db750
commit a26f57d249
No known key found for this signature in database
GPG key ID: C91CFF9E2262BBA1
2 changed files with 11 additions and 7 deletions

View file

@ -31,6 +31,10 @@ jobs:
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- uses: gradle/actions/setup-gradle@v4 - uses: gradle/actions/setup-gradle@v4
with: with:
gradle-version: "8.10" # Quotes required to prevent YAML converting to number gradle-version: "8.10" # Quotes required to prevent YAML converting to number

View file

@ -9,36 +9,36 @@ group = 'mp.code'
version = '0.0.1' version = '0.0.1'
java { java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
} }
import com.vanniktech.maven.publish.SonatypeHost import com.vanniktech.maven.publish.SonatypeHost
mavenPublishing { mavenPublishing {
// publishToMavenCentral(SonatypeHost.S01) // for snapshots //publishToMavenCentral(SonatypeHost.S01) // for snapshots
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // central repository publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // central repository
// publishToMavenCentral(SonatypeHost.DEFAULT) // ???? // publishToMavenCentral(SonatypeHost.DEFAULT) // default
signAllPublications() signAllPublications()
coordinates("mp.code", "codemp", "0.0.1") coordinates(project.group, rootProject.name, project.version)
pom { pom {
name = "codemp" name = rootProject.name
description = "a collaborative editor plugin ecosystem" description = "A collaborative editor plugin ecosystem"
inceptionYear = "2022" inceptionYear = "2022"
url = "https://code.mp/" url = "https://code.mp/"
licenses { licenses {
license { license {
name = "The GNU General Public License v3.0" name = "The GNU General Public License v3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.txt" url = "https://www.gnu.org/licenses/gpl-3.0.txt"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
} }
} }
developers { developers {
developer { developer {
id = "zaaarf" id = "zaaarf"
name = "zaaarf" name = "zaaarf"
email = "zaaarf@codemp.dev"
} }
} }
scm { scm {