Last active
December 17, 2015 10:59
-
-
Save mpilquist/5599114 to your computer and use it in GitHub Desktop.
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
scalaVersion := "2.10.1" | |
externalPom() |
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
// Put in src/test/scala | |
object Foo { | |
// From main slf4j-api JAR | |
val logger = org.slf4j.LoggerFactory.getLogger("Foo") | |
// From test slf4j-api JAR | |
val bp = new org.slf4j.helpers.BogoPerf | |
} |
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"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>example</groupId> | |
<artifactId>example</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0.0-SNAPSHOT</version> | |
<build> | |
<sourceDirectory>src/main/scala</sourceDirectory> | |
<testSourceDirectory>src/test/scala</testSourceDirectory> | |
<plugins> | |
<plugin> | |
<groupId>net.alchim31.maven</groupId> | |
<artifactId>scala-maven-plugin</artifactId> | |
<version>3.1.0</version> | |
<configuration> | |
<recompileMode>incremental</recompileMode> | |
<useZincServer>true</useZincServer> | |
<args> | |
<arg>-target:jvm-1.6</arg> | |
<arg>-feature</arg> | |
<arg>-deprecation</arg> | |
<arg>-encoding</arg> | |
<arg>UTF-8</arg> | |
</args> | |
<javacArgs> | |
<javacArg>-source</javacArg> | |
<javacArg>1.6</javacArg> | |
<javacArg>-Xlint:-options</javacArg> | |
<javacArg>-target</javacArg> | |
<javacArg>1.6</javacArg> | |
</javacArgs> | |
<jvmArgs> | |
<jvmArg>-Xmx768m</jvmArg> | |
<jvmArg>-Xss10m</jvmArg> | |
</jvmArgs> | |
<scalaVersion>${scala.version}</scalaVersion> | |
</configuration> | |
<executions> | |
<execution> | |
<id>scala-compile</id> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>2.10.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>1.7.5</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>1.7.5</version> | |
<classifier>tests</classifier> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.11</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment