Project

General

Profile

Architecture #10127

Switch to Scala 2.12 / Lift 3.0

Added by François ARMAND over 2 years ago. Updated about 2 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Dependencies
Target version:
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ÉActions
Architecture #10129: Switch to Scala 2.12 / Lift 3.0 - commonsReleasedVincent MEMBRÉActions
Architecture #10130: Switch to Scala 2.12 / Lift 3.0 - scala-ldapReleasedVincent MEMBRÉActions
Bug #10179: Reapply 10106 after change to scala 2.12/lift 3ReleasedFrançois ARMANDActions
Bug #10180: Errors are silenced when contacting remote-run apiReleasedVincent MEMBRÉActions
Architecture #10193: Spurious println introduced in parent ticketReleasedFrançois ARMANDActions
Bug #10260: Lift security policy violatedReleasedVincent MEMBRÉActions

Related issues

Related to Rudder - Architecture #10119: Scala actors are deprecated in scala 2.11 and removed in 2.12: update inventory-endpointReleased2017-02-02Actions
Related to Rudder - Bug #9815: Remaining self closing tag in HTML 5 filesRejected2016-12-16Actions
Is duplicate of Rudder - Bug #10125: Remove "bind" use in lift templateRejected2017-02-03Actions

Associated revisions

Revision 44c8f636 (diff)
Added by François ARMAND over 2 years ago

Fixes #10127: Switch to Scala 2.12 / Lift 3.0

Revision 812524ed (diff)
Added by François ARMAND over 2 years ago

Fixes #10127: Switch to Scala 2.12 / Lift 3.0

History

#1

Updated by François ARMAND over 2 years ago

  • Description updated (diff)
#2

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

Updated by François ARMAND over 2 years 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 over 2 years ago

  • Status changed from Pending technical review to Pending release
#5

Updated by François ARMAND over 2 years ago

  • Is duplicate of Bug #10125: Remove "bind" use in lift template added
#6

Updated by François ARMAND over 2 years ago

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

Updated by Vincent MEMBRÉ over 2 years 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