Code Monkey home page Code Monkey logo

scala3-example-project's Introduction

Example sbt project that compiles using Scala 3

Continuous Integration

Usage

This is a normal sbt project. You can start the sbt shell using sbt then compile code with compile, run the main method with run, run the tests with test and start a REPL using console.

If compiling this example project fails, you probably have a global sbt plugin that does not work with Scala 3. You might try disabling plugins in ~/.sbt/1.0/plugins and ~/.sbt/1.0.

Making a new Scala 3 project

The fastest way to start a new Scala 3 project is to use one of the following templates:

Using Scala 3 in an existing project

You will need to make the following adjustments to your build:

project/build.properties

sbt.version=1.7.1

You must use sbt 1.5.5 or newer; older versions of sbt are not supported.

build.sbt

Set up the Scala 3 version:

scalaVersion := "3.2.0"

Getting your project to compile with Scala 3

For help with porting an existing Scala 2 project to Scala 3, see the Scala 3 migration guide.

Need help?

https://www.scala-lang.org/community/ has links.

scala3-example-project's People

Contributors

smarter avatar nicolasstucki avatar scala-steward avatar anatoliykmetyuk avatar shapelesscat avatar allanrenucci avatar sethtisue avatar unkarjedy avatar felixmulder avatar xuwei-k avatar biboudis avatar xhudik avatar philippus avatar fermiyon avatar blaisorblade avatar julienrf avatar bishabosha avatar liufengyun avatar brbrown25 avatar ferhtaydn avatar olivierblanvillain avatar abgruszecki avatar alvinj avatar darkdimius avatar prolativ avatar kordyjan avatar nthportal avatar sake92 avatar rsoeldner avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.