Skip to content

Commit

Permalink
Drop JDK11 support (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenamar-db authored Dec 18, 2024
1 parent 3f82c78 commit 10709eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
lang: ['jvm', 'js', 'native']
java: ['11', '17']
java: ['17', '21']
env:
# Set LANG=C to simulate least-common-denominator target deployment environments:
LANG: C
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val sjsonnetVersion = "0.4.13"
val sjsonnetVersion = "0.4.14"

scalaVersion in Global := "2.13.12"

Expand Down
2 changes: 1 addition & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import mill._, scalalib._, publish._, scalajslib._, scalanativelib._, scalanativ
import $ivy.`com.lihaoyi::mill-contrib-jmh:`
import contrib.jmh.JmhModule

val sjsonnetVersion = "0.4.13"
val sjsonnetVersion = "0.4.14"

val scalaVersions = Seq("2.12.20", "2.13.15")

Expand Down
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ mitigate the unfortunate JVM warmup overhead that adds ~1s to every invocation
down to 0.2-0.3s. For the simple non-client-server executable, you can use

```bash
./mill -i show sjsonnet[2.13.4].jvm.assembly
./mill -i show sjsonnet[2.13.15].jvm.assembly
```

To create the executable. For the client-server executable, you can use

```bash
./mill -i show sjsonnet[2.13.4].server.assembly
./mill -i show sjsonnet[2.13.15].server.assembly
```

By default, the Sjsonnet background server lives in `~/.sjsonnet`, and lasts 5
Expand All @@ -268,18 +268,18 @@ programmatically via `new Interpreter(...).interpret(...)`.
To publish, make sure the version number in `build.sc` is correct, then run the following commands:

```bash
./mill -i mill.scalalib.PublishModule/publishAll --sonatypeCreds lihaoyi:$SONATYPE_PASSWORD --publishArtifacts __.publishArtifacts --release true
./mill -i mill.scalalib.PublishModule/publishAll --sonatypeCreds $SONATYPE_USER:$SONATYPE_PASSWORD --publishArtifacts __.publishArtifacts --release true

./mill -i show sjsonnet[2.13.4].js.fullOpt
./mill -i show sjsonnet[2.13.4].jvm.assembly
./mill -i show sjsonnet[2.13.15].js.fullOpt
./mill -i show sjsonnet[2.13.15].jvm.assembly
```

Please ensure that you are publishing with JDK 8, e.g. via
`JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/`,
to ensure the output bytecode remains compatible with users on older JVMs.

## Changelog

### Pending Version
- Fix a bug in new strict mode for set in std.setUnion [#242](https://github.com/databricks/sjsonnet/issues/242)
- Add support for Java 21 and dropped support for Java 11.

### 0.4.13
- Implemented every missing methods in `std`.
- Improved readability of stack traces when `std` methods are involved.
Expand Down

0 comments on commit 10709eb

Please sign in to comment.