-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathScalaWebTestBuild.scala
executable file
·86 lines (83 loc) · 3 KB
/
ScalaWebTestBuild.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import sbt._
import scala.xml.{Elem, NodeSeq}
object ScalaWebTestBuild {
def bomDependencies(versions: Map[String, String])(scalaVersion: String): Elem = {
val scalaMajorVersion = scalaVersion.substring(0, "2.XX".length)
val dependencies = <dependencyManagement>
<dependencyManagementDependencies>
<dependency>
<groupId>org.scalawebtest</groupId>
<artifactId>scalawebtest-core_{scalaMajorVersion}</artifactId>
<version>{versions("scalaWebTest")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scalawebtest</groupId>
<artifactId>scalawebtest-json_{scalaMajorVersion}</artifactId>
<version>{versions("scalaWebTest")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scalawebtest</groupId>
<artifactId>scalawebtest-aem_{scalaMajorVersion}</artifactId>
<version>{versions("scalaWebTest")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_{scalaMajorVersion}</artifactId>
<version>{versions("scalaTest")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>{versions("selenium")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>{versions("htmlUnit")}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play-json</artifactId>
<version>{versions("playJson")}</version>
<scope>test</scope>
</dependency>
</dependencyManagementDependencies>
</dependencyManagement>
dependencies
}
def scalaWebTestPomExtra: NodeSeq = {
<url>http://www.scalawebtest.org</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>[email protected]/unic/ScalaWebTest.git</url>
<connection>scm:git:[email protected]/unic/ScalaWebTest.git</connection>
</scm>
<developers>
<developer>
<id>DaniRey</id>
<name>Daniel Rey</name>
<email>[email protected]</email>
<organization>Unic AG</organization>
<organizationUrl>http://www.unic.com</organizationUrl>
</developer>
<developer>
<id>thedodobird2</id>
<name>Hudson Muff</name>
<email>[email protected]</email>
<organization>Unic AG</organization>
<organizationUrl>http://www.unic.com</organizationUrl>
</developer>
</developers>
}
}