Skip to Content
Manuel de cuisine Scala, 2e édition
book

Manuel de cuisine Scala, 2e édition

by Alvin Alexander
November 2024
Intermediate to advanced
802 pages
19h 26m
French
O'Reilly Media, Inc.
Content preview from Manuel de cuisine Scala, 2e édition

Chapitre 17. Construire des projets avec sbt

Cet ouvrage a été traduit à l'aide de l'IA. Tes réactions et tes commentaires sont les bienvenus : translation-feedback@oreilly.com

Bien que tu puisses utiliser des outils comme Ant, Maven et Gradle pour construire tes projets Scala, sbt - initialementnommé Simple Build Tool - estl'outil de construction de facto pour les applications Scala. sbt simplifie les tâches de base de construction et de gestion des dépendances et te permet d'utiliser le langage Scala lui-même pour conquérir des tâches plus difficiles.

sbt utilise la même structure de répertoire que Maven, et comme Maven, il utilise une approche de "convention plutôt que de configuration" qui rend le processus de construction incroyablement facile pour les projets de base. Parce qu'il fournit un processus de construction standard et bien connu, si tu travailles sur un projet Scala construit avec sbt, il est facile de passer à un autre projet qui utilise également sbt. La structure du répertoire du projet sera la même, et tu sauras que tu dois regarder le fichier build.sbt et les fichiers optionnels project/*.sbt pour voir comment le processus de construction est configuré.

À partir de la version 1.3.0, sbt a commencé à utiliser Coursier pour la gestion de la bibliothèque, une tâche que le site Web de Coursier désigne sous le nom d'extraction d'artefacts. Avant la version 1.3.0, sbt utilisait Apache Ivy pour cette tâche, mais Coursier se veut une alternative plus rapide. Lorsque ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Programmation de PyTorch pour l'apprentissage profond

Programmation de PyTorch pour l'apprentissage profond

Ian Pointer

Publisher Resources

ISBN: 9798341619739