Skip to content

Lein javac options break on JDKs >= 12 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KingMob opened this issue Nov 28, 2020 · 1 comment
Closed

Lein javac options break on JDKs >= 12 #40

KingMob opened this issue Nov 28, 2020 · 1 comment

Comments

@KingMob
Copy link
Collaborator

KingMob commented Nov 28, 2020

This line in project.clj is causing the problem: :javac-options ["-target" "1.6" "-source" "1.6"]

It's not a blocker for those consuming by jar, it's only if you want to fire up a REPL and poke around the code.

❯ jenv shell 12
~/Documents/Code/byte-streams |HEAD✓
❯ lein do clean, compile, repl
Compiling 3 source files to /Users/matthew/Documents/Code/byte-streams/target/classes
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
Compilation of Java sources(lein javac) failed.
@slipset slipset closed this as completed Dec 16, 2020
@slipset slipset reopened this Dec 16, 2020
@slipset
Copy link
Member

slipset commented Dec 25, 2020

I've moved this from the default profile to the ci profile, so this should be fixed now.
Please reopen if the problem persists

@slipset slipset closed this as completed Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants