
While there is already a Bazel plugin for IntelliJ-based IDEs, it is often not up to date with the. To give users even more options in the BSP ecosystem, we decided to add support for Bazel. org.scala-lang scala-library 2.12.1 org.scala-lang scala-compiler 2.12.1 org.scala-lang scala-reflect 2.12.1 org.scala-lang scala-actors 2.11.8 org.scala-tools maven-scala-plugin 2.15.2 maven-compiler-plugin 3.2 1.8 1.8 UTF-8 compile compile scala-maven-plugin 3.2. The Build Server Protocol (BSP), a protocol initially developed by the Scala Center and JetBrains, enables the easy integration of IDEs and build tools.
Intellij idea scala code#
The java code of the maven project is generally placed like this: src/main/java/Īnd our Scala code can be put like this: src/main/scala/Īnd set this directory as Sources Root (right-click the scala folder in IDEA, then click Make Directory As -> Sources Root)Īdd scala-related dependencies and plugins to POM.xml

Project Structure -> Global Libraries -> + Scala SDK, and then select the scala directory downloaded and unzipped above. Open this project and create a scala-sdk in the project: Step6: IntelliJ IDEA welcome screen will open. This will allow users to develop Scala projects too.
Intellij idea scala install#
Step5: In this section, install the Scala support. To the right of the Scala SDK field, click the Create button. Installing IntelliJ IDEA with Apache Kafka Introduction, What is Kafka, Kafka Topic Replication, Kafka Fundamentals, Architecture, Kafka Installation. Name the project HelloWorld Assuming this is your first time creating a Scala project with IntelliJ, you’ll need to install a Scala SDK. Unzip it to any directory, and set SCALA_HOME and PATH, and then test whether the installation is correct in the command line: scala -version, if the installation is correct, the version information will be displayed.Ĭreate a Maven project, the simplest one: maven-archetype-quickstart (mvn archetype:generate -DgroupId=com.scala -DartifactId=simple -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false) Open up IntelliJ and click File > New > Project On the left panel, select Scala. If you encounter a wall, IDEA will get stuck. You can download the SDK directly in it, but it is not recommended to do this. Il plugin Scala in IDEA non funziona - scala, intellij-idea, scala-2.8 scintilla da scala 2.10.4 a 2. When creating a Scala Project with IDEA for the first time, you will be prompted to install the Scala SDK. After installing the plug-in, you can create Scala Project and Scala Class. Click Configure -> Plugins on the IDEA startup interface, then search for Scala, and click Install. After a bit of toss, I recorded the process.įirst, you need to install the Scala plug-in for IntelliJ IDEA.

Today, I tried to write Scala code in IntelliJ IDEA, and call each other with Java code.
