Skip to content

Commit

Permalink
split into modules/projects. Added gradle build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontgomery committed Feb 25, 2014
1 parent e7e1cd8 commit b2bbbdd
Show file tree
Hide file tree
Showing 29 changed files with 809 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ out
*.sublime-project
*.sublime-workspace
build-local.properties
.gradle
build
127 changes: 127 additions & 0 deletions aeron-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<!--
* Copyright 2014 Real Logic Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<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>

<parent>
<groupId>uk.co.real_logic</groupId>
<artifactId>aeron-parent</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>

<artifactId>aeron-core</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Aeron/core</name>
<url>https://github.com/real-logic/Aeron</url>
<description>
Core API and protocol processing.
</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<checkstyle.config.location>../config/checkstyle/checkstyle.xml</checkstyle.config.location>
</properties>

<dependencies>
<dependency>
<groupId>uk.co.real_logic</groupId>
<artifactId>aeron-util</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>1.8</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.11</version>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<encoding>UTF-8</encoding>
<!-- checkstyle doesn't like lambdas and exceptions and bails-->
<consoleOutput>true</consoleOutput>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<doctitle><![CDATA[<h1>Aeron Transport Protocol</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright &#169; 2014 Real Logic Ltd. All Rights Reserved.</i>]]></bottom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@
/**
* Unit test for simple App.
*/
public class AppTest
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
public AppTest(String testName)
{
super( testName );
super(testName);
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
return new TestSuite(AppTest.class);
}

/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
assertTrue(true);
}
}
52 changes: 23 additions & 29 deletions examples/pom.xml → aeron-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
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>uk.co.real_logic</groupId>
<parent>
<groupId>uk.co.real_logic</groupId>
<artifactId>aeron-parent</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>

<artifactId>aeron-examples</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
Expand All @@ -28,41 +33,20 @@
Examples for Aeron.
</description>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<inceptionYear>2014</inceptionYear>

<scm>
<url>https://github.com/real-logic/Aeron.git</url>
<connection>scm:git:https://github.com/real-logic/Aeron.git</connection>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<checkstyle.config.location>../src/main/resources/uk/co/real_logic/aeron/checkstyle.xml</checkstyle.config.location>
<checkstyle.config.location>../config/checkstyle/checkstyle.xml</checkstyle.config.location>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
<groupId>uk.co.real_logic</groupId>
<artifactId>aeron-core</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>uk.co.real_logic</groupId>
<artifactId>aeron</artifactId>
<artifactId>aeron-iodriver</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
</dependencies>
Expand All @@ -89,6 +73,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand All @@ -99,8 +92,10 @@
<phase>validate</phase>
<configuration>
<encoding>UTF-8</encoding>
<!-- checkstyle doesn't like lambdas and exceptions and bails-->
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
<goals>
<goal>check</goal>
Expand Down Expand Up @@ -133,5 +128,4 @@
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@
/**
* Unit test for simple App.
*/
public class AppTest
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
public AppTest(String testName)
{
super( testName );
super(testName);
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
return new TestSuite(AppTest.class);
}

/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
assertTrue(true);
}
}
20 changes: 20 additions & 0 deletions aeron-iodriver/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2014 Real Logic Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

checkstyle {
// lambdas break checkstyle currently. Grrrr!
ignoreFailures = true
}
Loading

0 comments on commit b2bbbdd

Please sign in to comment.