Skip to content

Commit

Permalink
exclude *.scala files from tycho build
Browse files Browse the repository at this point in the history
  • Loading branch information
muuki88 committed May 27, 2012
1 parent 4ef12d4 commit 376751f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@

# Maven
*/target/*
target/*

# Scala
*.cache
69 changes: 34 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,65 +9,64 @@
<packaging>pom</packaging>

<properties>
<tycho-version>0.14.1</tycho-version>
<tycho.version>0.14.1</tycho.version>
<scala.version>2.9.2</scala.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<encoding>UTF-8</encoding>
<scala.version>2.9.2</scala.version>
</properties>
<modules>
<module>de.mukis.target</module>
<module>de.mukis.ui</module>
<module>de.mukis.core</module>
</modules>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<excludeResources>
<excludeResource>**/*.scala</excludeResource>
</excludeResources>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<resolver>p2</resolver>
</configuration>
</plugin>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.0</version>
<executions>
<execution>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<args>
<arg>-make:transitive</arg>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<useFile>false</useFile>
<disableXmlReport>true</disableXmlReport>
<!-- If you have classpath issue like NoDefClassError,... -->
<!-- useManifestOnlyJar>false</useManifestOnlyJar -->
<includes>
<include>**/*Test.*</include>
<include>**/*Suite.*</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<!-- <plugin> <groupId>org.eclipse.target</groupId> <artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version> <configuration> <target> <artifact> <groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId> <version>${project.version}</version>
<classifier>mukis-target</classifier> </artifact> </target> </configuration>
</plugin> -->
</plugins>
</build>
</project>

0 comments on commit 376751f

Please sign in to comment.