Skip to content

Commit

Permalink
ci(java): require java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaarf committed Sep 18, 2024
1 parent 92a48db commit a26f57d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions dist/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a26f57d

Please sign in to comment.