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
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

View file

@ -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 {