Skip to content

Commit

Permalink
Merge pull request #12 from linkerlin/master
Browse files Browse the repository at this point in the history
optimized pom.xml and build.gradle
  • Loading branch information
ivan-vasilev committed Apr 16, 2014
2 parents 067a56f + b184025 commit 0987b43
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
6 changes: 5 additions & 1 deletion nn-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
group = 'com.github.neuralnetworks'
description = 'GPU Neural networks for Java - Core'
dependencies {
compile files('lib/aparapi.jar')
compile files('lib/aparapi.jar')
compile group: 'org.uncommons.maths', name: 'uncommons-maths', version:'1.2.2a'
compile group: 'junit', name: 'junit', version:'4.11'
}

test {
maxParallelForks = 4
}
12 changes: 5 additions & 7 deletions nn-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,19 @@
<dependency>
<groupId>com.amd</groupId>
<artifactId>aparapi</artifactId>
<version>2013_01_23</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/aparapi.jar</systemPath>
</dependency>

<dependency>
<groupId>org.uncommons.maths</groupId>
<artifactId>uncommons-maths</artifactId>
<version>1.2.2a</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions nn-samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ group = 'com.github.neuralnetworks'
description = 'Neural networks for Java - Samples'
dependencies {
compile project(':nn-core')
}

test {
maxParallelForks = 4
}
15 changes: 15 additions & 0 deletions nn-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,25 @@

<dependencies>
<!-- Aparapi dependency -->
<dependency>
<groupId>com.amd</groupId>
<artifactId>aparapi</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/../nn-core/lib/aparapi.jar</systemPath>
</dependency>
<dependency>
<groupId>com.github.neuralnetworks</groupId>
<artifactId>nn-core</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.uncommons.maths</groupId>
<artifactId>uncommons-maths</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<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>com.github</groupId> <artifactId>neuralnetworks</artifactId> <version>0.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <commons_collections.version>3.2.1</commons_collections.version> <maven.test.skip>true</maven.test.skip> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.9</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> <modules> <module>nn-core</module> <module>nn-samples</module> </modules></project>
<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>com.github</groupId> <artifactId>neuralnetworks</artifactId> <version>0.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <commons_collections.version>3.2.1</commons_collections.version> <maven.test.skip>true</maven.test.skip> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.uncommons.maths</groupId> <artifactId>uncommons-maths</artifactId> <version>1.2.2a</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.amd</groupId> <artifactId>aparapi</artifactId> <version>2013_01_23</version> <scope>system</scope> <systemPath>${project.basedir}/nn-core/lib/aparapi.jar</systemPath> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <configuration> <forkCount>3</forkCount> <reuseForks>true</reuseForks> <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> <systemPropertyVariables> </systemPropertyVariables> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.9</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> <modules> <module>nn-core</module> <module>nn-samples</module> </modules></project>
Expand Down

0 comments on commit 0987b43

Please sign in to comment.