diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a84561f..5cf672b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,18 +54,11 @@ jobs: with: version-file: pyproject.toml - - id: get-java-version - run: | - uv run python - >> "$GITHUB_OUTPUT" <<'EOF' - from jdk4py import JAVA_VERSION - - version = ".".join(str(number) for number in JAVA_VERSION) - print(f"version={version}") - EOF - uses: actions/setup-java@v6.2.0 with: distribution: temurin - java-version: ${{ steps.get-java-version.outputs.version }} + # The exact build, so that setup-java never falls back to the JDK preinstalled on the runner. + java-version: 25.0.5.1+2 - run: uv run python build_java_runtime.py - if: github.event_name == 'pull_request' diff --git a/README.md b/README.md index c0a364a..860f7c0 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,6 @@ PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime/bin/java') `jdk4py`'s version contains 4 numbers: -- The first 3 numbers correspond to the JDK version. -- The fourth number is the library API version. +- The first 3 numbers are the first 3 numbers of the bundled JDK version. + `JAVA_VERSION` holds them. +- The fourth number starts at 0 and goes up by 1 with each release that keeps the first 3, for instance to bundle a JDK patch or to change the library. diff --git a/prek.toml b/prek.toml index 1cd543b..022273d 100644 --- a/prek.toml +++ b/prek.toml @@ -18,10 +18,10 @@ types = ["python"] require_serial = true [[repos.hooks]] -id = "ty" -name = "ty check" +id = "uv-check" +name = "uv check" language = "system" -entry = "uv run ty check" +entry = "uv check" pass_filenames = false types = ["python"] diff --git a/pyproject.toml b/pyproject.toml index 53d122a..ebb7d75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ license-files = ["LICENSE"] name = "jdk4py" readme = "README.md" requires-python = ">=3.10" -version = "25.0.5.0" +version = "25.0.5.1" [project.scripts] jdk4py = "jdk4py.__main__:main" @@ -71,5 +71,5 @@ error-on-warning = true [tool.uv] # Keep pinned to ensure same version is used on CI. -required-version = "==0.13.7" +required-version = "==0.13.8" trusted-publishing = "always" diff --git a/uv.lock b/uv.lock index 43bb638..ba758a0 100644 --- a/uv.lock +++ b/uv.lock @@ -34,7 +34,7 @@ wheels = [ [[package]] name = "jdk4py" -version = "25.0.5.0" +version = "25.0.5.1" source = { editable = "." } [package.dev-dependencies]