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
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ jobs:
path: blue-quickjs
submodules: recursive

- 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: Set up pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ jobs:
path: blue-quickjs
submodules: recursive

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

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

- name: Set up pnpm
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ dependencies {
}
```

The project targets Java 8 bytecode and depends on:
The project targets Java 8-compatible bytecode, builds with JDK 25, runs tests
on Java 8, and depends on:

```groovy
api "blue.language:blue-language-java:3.0.0"
Expand Down Expand Up @@ -200,6 +201,10 @@ Common workflow bindings:

## Build And Test

Gradle runs on JDK 25 and uses a Java 8 toolchain for tests. If Java 8 is not
installed locally, Gradle can provision it through the configured Foojay
toolchain resolver.

Run tests:

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

group = 'blue.coordination'
Expand All @@ -28,16 +28,13 @@ repositories {
java {
withSourcesJar()
withJavadocJar()
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
}

dependencies {
Expand All @@ -59,6 +56,9 @@ compileTestJava {
}

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.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-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
11 changes: 4 additions & 7 deletions gradlew

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

176 changes: 82 additions & 94 deletions gradlew.bat

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

4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
}

rootProject.name = 'blue-coordination-java'

def localBlueRepository = file('../blue-repository-java')
Expand Down
Loading