Skip to content

Commit

Permalink
CI: use --illegal-access=deny when possible
Browse files Browse the repository at this point in the history
Closes #88
  • Loading branch information
vemv authored and bbatsov committed Aug 29, 2021
1 parent b855c87 commit ca5fae9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,39 @@ version: 2.1

defaults: &defaults
working_directory: ~/repo
environment:
LEIN_ROOT: "true" # we intended to run lein as root
JVM_OPTS: -Xmx3200m # limit the maximum heap size to prevent out of memory errors

env_defaults: &env_defaults
LEIN_ROOT: "true" # we intended to run lein as root

jdk8_env_defaults: &jdk8_env_defaults
JVM_OPTS: -Xmx3200m

newer_jdk_env_defaults: &newer_jdk_env_defaults
JVM_OPTS: -Xmx3200m --illegal-access=deny

# Runners for OpenJDK 8 and 11

executors:
openjdk8:
docker:
- image: circleci/clojure:openjdk-8-lein-2.9.1
environment:
<<: *env_defaults
<<: *jdk8_env_defaults
<<: *defaults
openjdk11:
docker:
- image: circleci/clojure:openjdk-11-lein-2.9.1
environment:
<<: *env_defaults
<<: *newer_jdk_env_defaults
<<: *defaults
openjdk16:
docker:
- image: circleci/clojure:openjdk-16-lein-2.9.5-buster
environment:
<<: *env_defaults
<<: *newer_jdk_env_defaults
<<: *defaults

# Runs a given set of steps, with some standard pre- and post-
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
:clj-kondo [:test
{:dependencies [[clj-kondo "2021.03.31"]]}]

:eastwood {:plugins [[jonase/eastwood "0.9.1"]]
:eastwood {:plugins [[jonase/eastwood "0.9.6"]]
:eastwood {:exclude-namespaces [~(if jdk8?
'orchard.java.parser
'orchard.java.legacy-parser)]}}})

0 comments on commit ca5fae9

Please sign in to comment.