Last active
June 16, 2018 14:11
-
-
Save matteosb/6aafa5d75938c1cfc499 to your computer and use it in GitHub Desktop.
Maven Build for a Scala Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>replace-me</groupId> | |
<artifactId>sample</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<scala.version>2.11.7</scala.version> | |
<scala.base.version>2.11</scala.base.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.scalatest</groupId> | |
<artifactId>scalatest_${scala.base.version}</artifactId> | |
<version>2.2.5</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<!-- From: http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin--> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.7</version> | |
<configuration> | |
<skipTests>true</skipTests> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.scalatest</groupId> | |
<artifactId>scalatest-maven-plugin</artifactId> | |
<version>1.0</version> | |
<configuration> | |
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> | |
<junitxml>.</junitxml> | |
<filereports>ScalaTestSuite.txt</filereports> | |
</configuration> | |
<executions> | |
<execution> | |
<id>test</id> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>net.alchim31.maven</groupId> | |
<artifactId>scala-maven-plugin</artifactId> | |
<version>3.2.0</version> | |
<configuration> | |
<checkMultipleScalaVersions>false</checkMultipleScalaVersions> | |
<recompileMode>incremental</recompileMode> | |
<!--Run zinc as a deamon for even faster compilation--> | |
<!--http://davidb.github.io/scala-maven-plugin/example_incremental.html--> | |
<useZincServer>true</useZincServer> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment