Architecture #10127
closedSwitch to Scala 2.12 / Lift 3.0
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(...) } )
Updated by François ARMAND almost 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1475
Updated by François ARMAND almost 8 years ago
- Related to Architecture #10119: Scala actors are deprecated in scala 2.11 and removed in 2.12: update inventory-endpoint added
Updated by François ARMAND almost 8 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|44c8f636215f82a109590295463dcc31758d01a5.
Updated by François ARMAND almost 8 years ago
- Is duplicate of Bug #10125: Remove "bind" use in lift template added
Updated by François ARMAND almost 8 years ago
- Related to Bug #9815: Remaining self closing tag in HTML 5 files added
Updated by Vincent MEMBRÉ almost 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.0~beta3 which was released today.
- 4.1.0~beta3: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/