Skip to content

Commit

Permalink
POM-49. Introduce compile and test platform for library platform depe…
Browse files Browse the repository at this point in the history
  • Loading branch information
danburkert committed Sep 2, 2014
1 parent 8d07a48 commit d20a958
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 54 deletions.
11 changes: 7 additions & 4 deletions kiji-express-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
<groupId>org.kiji.schema</groupId>
<artifactId>kiji-schema</artifactId>
</dependency>
<dependency>
<groupId>org.kiji.platforms</groupId>
<artifactId>kiji-compile-platform</artifactId>
<type>pom</type>
<version>${kiji-platforms.version}</version>
<scope>provided</scope>
</dependency>

<!-- Normal dependencies. -->
<dependency>
Expand All @@ -62,10 +69,6 @@
<artifactId>log4j</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
</dependency>

<!-- Testing -->
<dependency>
Expand Down
27 changes: 11 additions & 16 deletions kiji-express-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
<groupId>org.kiji.mapreduce</groupId>
<artifactId>kiji-mapreduce</artifactId>
</dependency>
<dependency>
<groupId>org.kiji.platforms</groupId>
<artifactId>kiji-compile-platform</artifactId>
<type>pom</type>
<version>${kiji-platforms.version}</version>
<scope>provided</scope>
</dependency>

<!-- Normal dependencies. -->
<dependency>
Expand All @@ -80,10 +87,6 @@
<groupId>com.twitter</groupId>
<artifactId>scalding-args_${scala.version}</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -106,14 +109,11 @@

<!-- Test dependencies. -->
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<groupId>org.kiji.platforms</groupId>
<artifactId>kiji-test-platform</artifactId>
<type>pom</type>
<version>${kiji-platforms.version}</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
</dependency>
<dependency>
<groupId>org.kiji.schema</groupId>
Expand All @@ -128,11 +128,6 @@
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.version}</artifactId>
Expand Down
47 changes: 13 additions & 34 deletions kiji-express/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,13 @@
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<groupId>org.kiji.platforms</groupId>
<artifactId>kiji-compile-platform</artifactId>
<type>pom</type>
<version>${kiji-platforms.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -141,43 +136,27 @@
<scope>provided</scope>
</dependency>

<!-- Test dependencies. -->
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<!--
Keep this dependency in compile scope so that users can depend on the KijiExpress testing
framework by only depending on the KijiExpress test jar.
-->
<dependency>
<!-- TODO(EXP-469): Make this test scope. -->
<groupId>org.kiji.schema</groupId>
<artifactId>kiji-schema</artifactId>
<type>test-jar</type>
<scope>compile</scope>
</dependency>
<!--
Keep this dependency in compile scope so that users can depend on the KijiExpress testing
framework by only depending on the KijiExpress test jar.
-->

<dependency>
<!-- TODO(EXP-469): Make this test scope. -->
<groupId>org.kiji.testing</groupId>
<artifactId>fake-hbase</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minicluster</artifactId>
<groupId>org.kiji.platforms</groupId>
<artifactId>kiji-test-platform</artifactId>
<type>pom</type>
<version>${kiji-platforms.version}</version>
<scope>test</scope>
<optional>true</optional>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
</dependency>

<dependency>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<kiji-mapreduce.version>1.3.0-SNAPSHOT</kiji-mapreduce.version>
<fake-hbase.version>0.3.0-SNAPSHOT</fake-hbase.version>
<kiji-annotations.version>1.1.2-SNAPSHOT</kiji-annotations.version>
<kiji-platforms.version>1.4.0-SNAPSHOT</kiji-platforms.version>

<!-- Dependency versions. -->
<elephant-bird.version>4.4</elephant-bird.version>
Expand Down

0 comments on commit d20a958

Please sign in to comment.