Skip to content

Commit

Permalink
Compile scala code by maven
Browse files Browse the repository at this point in the history
Make resulting project use of `scala-maven-plugin` according
https://gatling.io/docs/current/installation#with-maven manual
and compile projects scala source files by scala out-of-the-box.
IntelijIdea is now able to run generated object files (it knows
that it is scala compiled) and also maven can compile
generated project.
  • Loading branch information
luvarqpp committed Mar 30, 2020
1 parent cd8e01d commit ceda1f0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,41 @@
</dependencies>

<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>\${gatling-maven-plugin.version}</version>
</plugin>
<!-- plugin for compiling scala sources by maven plugin. see https://gatling.io/docs/current/installation#with-maven -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.3.1</version>
<configuration>
<jvmArgs>
<jvmArg>-Xss100M</jvmArg>
</jvmArgs>
<args>
<arg>-target:jvm-1.8</arg>
<arg>-deprecation</arg>
<arg>-feature</arg>
<arg>-unchecked</arg>
<arg>-language:implicitConversions</arg>
<arg>-language:postfixOps</arg>
</args>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit ceda1f0

Please sign in to comment.