File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ object Common extends AutoPlugin {
2424
2525 if (ver == " 2.12" ) {
2626 Seq (
27- " -Xmax-classfile-name" , " 128" ,
2827 " -Ywarn-numeric-widen" ,
2928 " -Ywarn-infer-any" ,
3029 " -Ywarn-dead-code" ,
@@ -36,7 +35,19 @@ object Common extends AutoPlugin {
3635 " -Ywarn-nullary-override" ,
3736 " -Ywarn-nullary-unit" ,
3837 " -Ywarn-extra-implicit" )
39- } else if (ver != " 2.13" ) {
38+ } else {
39+ Seq .empty
40+ }
41+ },
42+ scalacOptions in (Compile , compile) ++= {
43+ if (scalaBinaryVersion.value != " 2.13" ) {
44+ Seq (" -Xmax-classfile-name" , " 128" )
45+ } else {
46+ Seq .empty
47+ }
48+ },
49+ scalacOptions in (Test , compile) ++= {
50+ if (scalaBinaryVersion.value != " 2.13" ) {
4051 Seq (" -Xmax-classfile-name" , " 128" )
4152 } else {
4253 Seq .empty
You can’t perform that action at this time.
0 commit comments