Skip to content

Commit

Permalink
Clean up POM for ASF standard
Browse files Browse the repository at this point in the history
  • Loading branch information
dszeto committed Sep 12, 2016
1 parent ae97760 commit edba148
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 24 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
#

branches:
only:
- master
- develop
- testing-infrastructure
except:
- livedoc

language: scala

Expand Down
33 changes: 21 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import UnidocKeys._

name := "pio"
name := "predictionio-parent"

version in ThisBuild := "0.10.0-incubating-rc1"

Expand Down Expand Up @@ -161,28 +161,37 @@ pioUnidoc := {
IO.read(baseDirectory.value / "docs" / "scaladoc" / "api-docs.js"))
}

pomExtra in ThisBuild := {
<url>http://predictionio.incubator.apache.org</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
homepage := Some(url("http:https://predictionio.incubator.apache.org"))

pomExtra := {
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>18</version>
</parent>
<scm>
<connection>scm:git:github.com/apache/incubator-predictionio</connection>
<developerConnection>scm:git:git@github.com:apache/incubator-predictionio.git</developerConnection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-predictionio.git</developerConnection>
<url>github.com/apache/incubator-predictionio</url>
</scm>
<developers>
<developer>
<id>pio</id>
<name>The PredictionIO Team</name>
<id>donald</id>
<name>Donald Szeto</name>
<url>http://predictionio.incubator.apache.org</url>
<email>donald@apache.org</email>
</developer>
</developers>
}

childrenPomExtra in ThisBuild := {
<parent>
<groupId>org.apache.predictionio</groupId>
<artifactId>predictionio-parent_{scalaBinaryVersion.value}</artifactId>
<version>{version.value}</version>
</parent>
}

concurrentRestrictions in Global := Seq(
Tags.limit(Tags.CPU, 1),
Tags.limit(Tags.Network, 1),
Expand Down
5 changes: 4 additions & 1 deletion common/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
* limitations under the License.
*/

name := "common"
name := "predictionio-common"

libraryDependencies ++= Seq(
"io.spray" %% "spray-can" % "1.3.2",
"io.spray" %% "spray-routing" % "1.3.2",
"org.spark-project.akka" %% "akka-actor" % "2.3.4-spark"
)

pomExtra := childrenPomExtra.value
4 changes: 3 additions & 1 deletion core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

name := "core"
name := "predictionio-core"

libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.3.0",
Expand Down Expand Up @@ -43,3 +43,5 @@ libraryDependencies ++= Seq(
//testOptions := Seq(Tests.Filter(s => Seq("Dev").exists(s.contains(_))))

parallelExecution in Test := false

pomExtra := childrenPomExtra.value
4 changes: 3 additions & 1 deletion data/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

name := "data"
name := "predictionio-data"

libraryDependencies ++= Seq(
"com.github.nscala-time" %% "nscala-time" % "2.6.0",
Expand Down Expand Up @@ -54,3 +54,5 @@ libraryDependencies ++= Seq(
"org.specs2" %% "specs2" % "2.3.13" % "test")

parallelExecution in Test := false

pomExtra := childrenPomExtra.value
4 changes: 3 additions & 1 deletion e2/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

name := "e2"
name := "predictionio-e2"

parallelExecution in Test := false

Expand All @@ -24,3 +24,5 @@ libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-mllib" % sparkVersion.value % "provided",
"org.clapper" %% "grizzled-slf4j" % "1.0.2",
"org.scalatest" %% "scalatest" % "2.2.5" % "test")

pomExtra := childrenPomExtra.value
3 changes: 3 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ object PIOBuild extends Build {
val sparkVersion = SettingKey[String](
"spark-version",
"The version of Apache Spark used for building.")
val childrenPomExtra = SettingKey[scala.xml.NodeSeq](
"children-pom-extra",
"Extra POM data for children projects.")
}
6 changes: 3 additions & 3 deletions tests/pio_tests/engines/recommendation-engine/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ name := "template-scala-parallel-recommendation"
organization := "org.apache.predictionio"

libraryDependencies ++= Seq(
"org.apache.predictionio" %% "core" % pioVersion.value % "provided",
"org.apache.spark" %% "spark-core" % "1.3.0" % "provided",
"org.apache.spark" %% "spark-mllib" % "1.3.0" % "provided")
"org.apache.predictionio" %% "predictionio-core" % pioVersion.value % "provided",
"org.apache.spark" %% "spark-core" % "1.3.0" % "provided",
"org.apache.spark" %% "spark-mllib" % "1.3.0" % "provided")
4 changes: 3 additions & 1 deletion tools/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import sbtassembly.AssemblyPlugin.autoImport._

name := "tools"
name := "predictionio-tools"

libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.2.0",
Expand Down Expand Up @@ -65,3 +65,5 @@ outputPath in assembly := baseDirectory.value.getAbsoluteFile.getParentFile /
"assembly" / ("pio-assembly-" + version.value + ".jar")

cleanFiles <+= baseDirectory { base => base.getParentFile / "assembly" }

pomExtra := childrenPomExtra.value

0 comments on commit edba148

Please sign in to comment.