Project

General

Profile

Architecture #10127

Switch to Scala 2.12 / Lift 3.0

Added by François ARMAND 10 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Dependencies
Target version:
Target version (plugin):
Effort required:

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

Architecture #10128: Switch to Scala 2.12 / Lift 3.0 - parent pomReleasedVincent MEMBRÉ

Architecture #10129: Switch to Scala 2.12 / Lift 3.0 - commonsReleasedVincent MEMBRÉ

Architecture #10130: Switch to Scala 2.12 / Lift 3.0 - scala-ldapReleasedVincent MEMBRÉ

Bug #10179: Reapply 10106 after change to scala 2.12/lift 3ReleasedFrançois ARMAND

Bug #10180: Errors are silenced when contacting remote-run apiReleasedVincent MEMBRÉ

Architecture #10193: Spurious println introduced in parent ticketReleasedFrançois ARMAND

Bug #10260: Lift security policy violatedReleasedVincent MEMBRÉ


Related issues

Related to Rudder - Architecture #10119: Scala actors are deprecated in scala 2.11 and removed in 2.12: update inventory-endpoint Released 2017-02-02
Related to Rudder - Bug #9815: Remaining self closing tag in HTML 5 files Rejected 2016-12-16
Duplicates Rudder - Bug #10125: Remove "bind" use in lift template Rejected 2017-02-03

Associated revisions

Revision 44c8f636
Added by François ARMAND 10 months ago

Fixes #10127: Switch to Scala 2.12 / Lift 3.0

History

#1 Updated by François ARMAND 10 months ago

  • Description updated (diff)

#2 Updated by François ARMAND 10 months 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

#3 Updated by François ARMAND 10 months ago

  • Related to Architecture #10119: Scala actors are deprecated in scala 2.11 and removed in 2.12: update inventory-endpoint added

#4 Updated by François ARMAND 10 months ago

  • Status changed from Pending technical review to Pending release

#5 Updated by François ARMAND 9 months ago

  • Duplicates Bug #10125: Remove "bind" use in lift template added

#6 Updated by François ARMAND 9 months ago

  • Related to Bug #9815: Remaining self closing tag in HTML 5 files added

#7 Updated by Vincent MEMBRÉ 9 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.0~beta3 which was released today.

Also available in: Atom PDF