Skip to content

Commit 25fc619

Browse files
authored
build: require java 17+ and update readme (#2448)
* build: require java 17+ and update readme * ci: update java version in github workflows * ci: update java version in github workflows pt 2 * Update settings.gradle.kts
1 parent c3c8524 commit 25fc619

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/workflows/check-spotless.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ on:
99
jobs:
1010
call-check:
1111
uses: SpongePowered/.github/.github/workflows/shared-check-spotless.yaml@master
12-
secrets: inherit
12+
with:
13+
runtime_version: 17
14+
secrets: inherit

.github/workflows/check-style.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ on:
99
jobs:
1010
call-check:
1111
uses: SpongePowered/.github/.github/workflows/shared-check-style.yaml@master
12+
with:
13+
runtime_version: 17
1214
secrets: inherit

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
call-build:
1515
uses: SpongePowered/.github/.github/workflows/shared-ci.yaml@master
1616
with:
17+
runtime_version: 17
1718
publish_snapshot_javadoc: true
1819
publishing_branch_regex: 'api-\d+'
1920
secrets: inherit

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SpongeAPI [![Build Status](https://travis-ci.org/SpongePowered/SpongeAPI.svg?branch=master)](https://travis-ci.org/SpongePowered/SpongeAPI)
1+
SpongeAPI ![Build Status](https://github.com/SpongePowered/SpongeAPI/actions/workflows/ci.yaml/badge.svg?branch=api-10)
22
=============
33
A mature Minecraft plugin API (not including an implementation), licensed under the [MIT License].
44

@@ -11,7 +11,7 @@ A mature Minecraft plugin API (not including an implementation), licensed under
1111
* [Discord] `#plugins`
1212

1313
## Prerequisites
14-
* [Java] 8 (JDK 16 recommended for development)
14+
* [Java] 17
1515

1616
## Clone
1717
The following steps will ensure your project is cloned properly.
@@ -24,7 +24,7 @@ __Note:__ If you do not have [Gradle] installed then use ./gradlew for Unix syst
2424

2525
In order to build SpongeAPI you simply need to run the `gradle` command. You can find the compiled JAR file in `./build/libs` labeled similarly to 'spongeapi-x.x.x-SNAPSHOT.jar'.
2626

27-
Sponge will use a javac version of *at least* 11. If an older JDK is used to launch Gradle, JDK 11 will be downloaded automatically.
27+
Sponge will use a javac version of *at least* 17. If an older JDK is used to launch Gradle, JDK 17 will be downloaded automatically.
2828

2929
## Contributing
3030
Are you a talented programmer looking to contribute some code? We'd love the help!
@@ -37,9 +37,9 @@ Are you a talented programmer looking to contribute some code? We'd love the hel
3737
[IntelliJ]: https://www.jetbrains.com/idea/
3838
[Issues]: https://github.com/SpongePowered/SpongeAPI/issues
3939
[Documentation]: https://docs.spongepowered.org/
40-
[Java]: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
40+
[Java]: https://adoptium.net/temurin/releases/
4141
[Source]: https://github.com/SpongePowered/SpongeAPI/
4242
[MIT License]: https://www.tldrlegal.com/license/mit-license
43-
[Discord]: https://discord.gg/PtaGRAs
43+
[Discord]: https://discord.gg/sponge
4444
[Preparing for Development]: https://docs.spongepowered.org/stable/en/preparing/
4545
[Javadocs]: https://jd.spongepowered.org

settings.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,3 @@ pluginManagement {
2121
plugins {
2222
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.3.0")
2323
}
24-
25-
if (JavaVersion.current() < JavaVersion.VERSION_11) {
26-
throw GradleException("SpongeAPI requires at least Java 11 to build, but you have ${JavaVersion.current()}.")
27-
}

0 commit comments

Comments
 (0)