Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK
- name: Set up Java 8 test runtime
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'

- name: Set up JDK 25
uses: actions/setup-java@v3
with:
java-version: '25'
distribution: 'corretto'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

Expand All @@ -40,4 +46,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: libs
path: build/libs
path: build/libs
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ jobs:
exit 1
fi

- name: Set up JDK
- name: Set up Java 8 test runtime
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'

- name: Set up JDK 25
uses: actions/setup-java@v3
with:
java-version: '25'
distribution: 'corretto'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,9 @@ For deeper design notes, see:

## Build And Test

The project currently compiles for Java 8 source/target compatibility and uses
JUnit 5 for tests. Build and test with a JDK that can run Gradle 8.4.
The project publishes Java 8-compatible bytecode, runs Gradle on JDK 25, and
executes tests on a Java 8 toolchain. If Java 8 is not installed locally, Gradle
can provision it through the configured Foojay toolchain resolver.

Run the full CI-style verification command:

Expand Down
19 changes: 11 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ plugins {
id 'java'
id 'maven-publish'
id 'signing'
id 'org.jreleaser' version '1.13.1'
id 'org.jreleaser' version '1.24.0'
}

group = "blue.language"
version = determineProjectVersion()
archivesBaseName = "blue-language-java"

base {
archivesName = "blue-language-java"
}

repositories {
if (!System.getenv('CI')) {
Expand All @@ -25,16 +28,13 @@ repositories {
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
if (JavaVersion.current().isJava9Compatible()) {
options.release = 8
}
options.release = 8
}

compileTestJava {
Expand Down Expand Up @@ -65,6 +65,9 @@ dependencies {
}

test {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(8)
}
useJUnitPlatform()
reports {
junitXml.required = false
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.java.installations.auto-download=true
org.gradle.java.installations.fromEnv=JAVA_HOME_8_X64,JAVA_HOME_8_ARM64,JAVA8_HOME
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 5 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
54 changes: 34 additions & 20 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading