LoginSignup
1
1

More than 5 years have passed since last update.

Gradleでtarget=1.8でscalaをコンパイル

Last updated at Posted at 2015-02-22

gradleでtarget=1.8でscalaをコンパイルする。

apply plugin: 'scala'

sourceCompatibility = 1.8
targetCompatibility = 1.8 // <= !!

compileScala {
  scalaCompileOptions.additionalParameters = ['-target:jvm-1.8']
}
javap -v ${classファイル} | grep version

で「major version: 52」って表示されたらOK。


  • targetCompatibility
    ↑これは効かない。
    1.6と1.7は指定どおりに動いた。。。
    1.8は対応してないのか...?
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1