Skip to content

Commit

Permalink
codebase setup
Browse files Browse the repository at this point in the history
  • Loading branch information
keznikl committed Oct 24, 2013
1 parent 5f20ce9 commit e2c3378
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 172 deletions.
51 changes: 20 additions & 31 deletions jdeeco-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</parent>
<artifactId>cz.cuni.mff.d3s.jdeeco.core</artifactId>
<packaging>jar</packaging>
<version>2.0.0-SNAPSHOT</version>
<properties>
<dist>../dist</dist>
<coreJar>jdeeco.jar</coreJar>
Expand Down Expand Up @@ -54,22 +55,7 @@
<type>${project.packaging}</type>
<destFileName>${coreJar}</destFileName>
<outputDirectory>${dist}</outputDirectory>
</artifactItem>

<artifactItem>
<groupId>uk.com.robust-it</groupId>
<artifactId>cloning</artifactId>
<version>1.9.0</version>
<destFileName>${clonerJar}</destFileName>
<outputDirectory>${lib}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>1.2</version>
<destFileName>${objenesisJar}</destFileName>
<outputDirectory>${lib}</outputDirectory>
</artifactItem>
</artifactItem>
</artifactItems>
</configuration>
</execution>
Expand Down Expand Up @@ -124,25 +110,28 @@
</pluginManagement>
</build>
<dependencies>
<!-- dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId>
<version>6.5.1</version> </dependency -->


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>

<dependency>
<groupId>uk.com.robust-it</groupId>
<artifactId>cloning</artifactId>
<version>1.9.0</version>
<scope>provided</scope>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>1.2</version>
<scope>provided</scope>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>cz.cuni.mff.d3s</groupId>
<artifactId>cz.cuni.mff.d3s.jini</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<groupId>junit-addons</groupId>
<artifactId>junit-addons</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</project>
12 changes: 12 additions & 0 deletions jdeeco-core/src/cz/cuni/mff/d3s/deeco/Dummy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cz.cuni.mff.d3s.deeco;

/**
* To set up the codebase and continuous integration
* @author Keznikl
*
*/
public class Dummy {
public String hello() {
return "hello";
}
}
27 changes: 27 additions & 0 deletions jdeeco-core/test/cz/cuni/mff/d3s/deeco/DummyTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package cz.cuni.mff.d3s.deeco;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class DummyTest {

Dummy dummy;

@Before
public void setUp() throws Exception {
dummy = new Dummy();
}

@After
public void tearDown() throws Exception {
}

@Test
public void test() {
assertEquals("hello", dummy.hello());
}

}
147 changes: 6 additions & 141 deletions jdeeco-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<groupId>cz.cuni.mff.d3s.jdeeco</groupId>
<properties>
<dist>../dist</dist>
<river>${dist}/apache-river</river>
<jdeecoCoreSrc>../jdeeco-core/src</jdeecoCoreSrc>
<mode>default</mode>
</properties>
Expand Down Expand Up @@ -35,138 +34,7 @@
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack</id>
<phase>install</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>cz.cuni.mff.d3s.zip</groupId>
<artifactId>apache-river</artifactId>
<version>2.2.1</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<overWriteIfNewer>true</overWriteIfNewer>
<outputDirectory>${dist}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>clean-dist</id>
<goals>
<goal>clean</goal>
</goals>
<phase>clean</phase>
<configuration>
<filesets>
<fileset>
<directory>${dist}</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>d3s-releases</id>
<url>https://github.com/d3scomp/mvn-repo/raw/master/releases/</url>
</repository>
<repository>
<id>maven-eclipse</id>
<url>http://maven.eclipse.org/nexus/content/repositories/testing</url>
</repository>
<repository>
<id>sonatype.releases</id>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</repositories>
</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>
<artifactId>cz.cuni.mff.d3s.jdeeco</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<groupId>cz.cuni.mff.d3s.jdeeco</groupId>
<properties>
<dist>../dist</dist>
<river>${dist}/apache-river</river>
<jdeecoCoreSrc>../jdeeco-core/src</jdeecoCoreSrc>
<mode>default</mode>
</properties>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<mode>default</mode>
</properties>
<modules>
<module>../jdeeco-core</module>
</modules>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack</id>
<phase>install</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>cz.cuni.mff.d3s.zip</groupId>
<artifactId>apache-river</artifactId>
<version>2.2.1</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<overWriteIfNewer>true</overWriteIfNewer>
<outputDirectory>${dist}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
Expand All @@ -193,14 +61,11 @@
<repository>
<id>d3s-releases</id>
<url>https://github.com/d3scomp/mvn-repo/raw/master/releases/</url>
</repository>
<repository>
<id>maven-eclipse</id>
<url>http://maven.eclipse.org/nexus/content/repositories/testing</url>
</repository>
</repository>
<repository>
<id>sonatype.releases</id>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
</repository>
<id>sonatype.releases</id>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</repositories>
</project>

0 comments on commit e2c3378

Please sign in to comment.