Project

General

Profile

Actions

Architecture #10127

closed

Switch to Scala 2.12 / Lift 3.0

Added by François ARMAND almost 8 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Dependencies
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

The first reason is that scala 2.11 is EOL, so as for Java 8, better to switch now toward a solution that will be supported for some time.

The second reason is that it leads to 25% (25Mo) decrease in war size (75Mo vs 96Mo - still huge, but better).

(there is also a little better compilation time, not very significative, and I have just a couple of data point looking like:
Scala 2.11: mvn -Dmaven.test.skip=true clean install 591,72s user 7,99s system 340% cpu 2:55,92 total
Scala 2.12: mvn -Dmaven.test.skip=true clean install 568,38s user 4,80s system 349% cpu 2:43,78 total
)

The last reason is that the migration is relatively easy. Three points to notice:

- scala-actor is gone (see #10119)
- lift "bind" is gone (so use CSS selectors)
- lift-json JField aren't JValue anymore (so use json match { case JObject(JField(...)) } in place of json match { case JField(...) } )


Subtasks 7 (0 open7 closed)

Architecture #10128: Switch to Scala 2.12 / Lift 3.0 - parent pomReleasedVincent MEMBRÉ2017-02-03Actions
Architecture #10129: Switch to Scala 2.12 / Lift 3.0 - commonsReleasedVincent MEMBRÉ2017-02-03Actions
Architecture #10130: Switch to Scala 2.12 / Lift 3.0 - scala-ldapReleasedVincent MEMBRÉ2017-02-03Actions
Bug #10179: Reapply 10106 after change to scala 2.12/lift 3ReleasedFrançois ARMAND2017-02-11Actions
Bug #10180: Errors are silenced when contacting remote-run apiReleasedVincent MEMBRÉ2017-02-11Actions
Architecture #10193: Spurious println introduced in parent ticketReleasedFrançois ARMANDActions
Bug #10260: Lift security policy violatedReleasedVincent MEMBRÉActions

Related issues 3 (0 open3 closed)

Related to Rudder - Architecture #10119: Scala actors are deprecated in scala 2.11 and removed in 2.12: update inventory-endpointReleasedVincent MEMBRÉ2017-02-02Actions
Related to Rudder - Bug #9815: Remaining self closing tag in HTML 5 filesRejectedVincent MEMBRÉ2016-12-16Actions
Is duplicate of Rudder - Bug #10125: Remove "bind" use in lift templateRejectedFrançois ARMAND2017-02-03Actions
Actions

Also available in: Atom PDF