Merge pull request #6853 from alvasw/gradle_enforce_jdk_version

Gradle: Enforce JDK Version
This commit is contained in:
Alejandro García 2023-09-11 21:30:02 +00:00 committed by GitHub
commit c204bbbe21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 3 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [ '11', '11.0.3', '15', '15.0.5']
java: ['11']
name: Test Java ${{ matrix.Java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.0.0

View File

@ -8,8 +8,13 @@ repositories {
maven { url "https://jitpack.io" }
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
vendor = JvmVendorSpec.AZUL
implementation = JvmImplementation.VENDOR_SPECIFIC
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'

View File

@ -312,6 +312,14 @@
<sha256 value="afded6e6a690fbf3ad4ae65ada397f0a90a5f630b303d1b741b9c97926fdd4de" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.code.gson" name="gson" version="2.9.1">
<artifact name="gson-2.9.1.jar">
<sha256 value="378534e339e6e6d50b1736fb3abb76f1c15d1be3f4c13cec6d536412e23da603" origin="Generated by Gradle"/>
</artifact>
<artifact name="gson-2.9.1.pom">
<sha256 value="e5966323d7142570b37a4be979e21bc2dae848107e4dc416d8f44d9aa3f02903" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.code.gson" name="gson-parent" version="2.8.5">
<artifact name="gson-parent-2.8.5.pom">
<sha256 value="8f1fec72b91a71ea39ec39f5f778c4d1124b6b097c6d55b3a50b554a52237b27" origin="Generated by Gradle"/>
@ -327,6 +335,11 @@
<sha256 value="b16e026e63427c1972ad0fc68703ec379b1576e411ba49c32fa9a31ab0bbcffb" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.code.gson" name="gson-parent" version="2.9.1">
<artifact name="gson-parent-2.9.1.pom">
<sha256 value="7ca0845e73685618de3e46bd3434d03a4a373d520fab93a680318ad6c8cb2a79" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.errorprone" name="error_prone_annotations" version="2.2.0">
<artifact name="error_prone_annotations-2.2.0.jar">
<sha256 value="6ebd22ca1b9d8ec06d41de8d64e0596981d9607b42035f9ed374f9de271a481a" origin="Generated by Gradle"/>
@ -1260,6 +1273,19 @@
<sha256 value="33deb55529b1a8bad499ae2fab7551720b4158ca414174c29fb61f0040423a50" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.gradle.toolchains" name="foojay-resolver" version="0.7.0">
<artifact name="foojay-resolver-0.7.0.jar">
<sha256 value="93672b4740a0fdbfbb5baf08353db8ae9a9bb25f6b10a93c078126c717db3ac0" origin="Generated by Gradle"/>
</artifact>
<artifact name="foojay-resolver-0.7.0.module">
<sha256 value="ed6746a09f32bfaddb90b029102ae62326e248129a68b74662a4a433d55314b8" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.gradle.toolchains.foojay-resolver" name="org.gradle.toolchains.foojay-resolver.gradle.plugin" version="0.7.0">
<artifact name="org.gradle.toolchains.foojay-resolver.gradle.plugin-0.7.0.pom">
<sha256 value="6dc13c3cff026122be388b2ddf75aea5feb1a18994bba5c2106884bb75ec4e59" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.hamcrest" name="hamcrest" version="2.2">
<artifact name="hamcrest-2.2.jar">
<sha256 value="5e62846a89f05cd78cd9c1a553f340d002458380c320455dd1f8fc5497a8a1c1" origin="Generated by Gradle"/>

View File

@ -5,6 +5,20 @@ pluginManagement {
includeBuild('build-logic')
}
plugins {
id("org.gradle.toolchains.foojay-resolver") version "0.7.0"
}
toolchainManagement {
jvm {
javaRepositories {
repository("foojay") {
resolverClass = org.gradle.toolchains.foojay.FoojayToolchainResolver
}
}
}
}
include 'proto'
include 'assets'
include 'common'