Skip to content

Commit bb84603

Browse files
committed
ci: dummy module now depends only on relevant subprojects
Before this commit dummy module in project was dependant on both versions of Scala and all supported versions of Spark, which is incorrect.
1 parent 72fb5ea commit bb84603

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

dummy/pom.xml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<parent>
45
<artifactId>kotlin-spark-api-parent</artifactId>
56
<groupId>org.jetbrains.kotlinx.spark</groupId>
@@ -10,22 +11,32 @@
1011
<name>Kotlin API for Apache Spark: not-needed</name>
1112
<description>Module to workaround https://issues.sonatype.org/browse/NEXUS-9138</description>
1213
<artifactId>dummy</artifactId>
13-
<dependencies>
14-
<dependency>
15-
<groupId>org.jetbrains.kotlinx.spark</groupId>
16-
<artifactId>examples-2.4_2.11</artifactId>
17-
<version>${project.parent.version}</version>
18-
</dependency>
19-
<dependency>
20-
<groupId>org.jetbrains.kotlinx.spark</groupId>
21-
<artifactId>examples-2.4_2.12</artifactId>
22-
<version>${project.parent.version}</version>
23-
</dependency>
24-
<dependency>
25-
<groupId>org.jetbrains.kotlinx.spark</groupId>
26-
<artifactId>examples-3.0_2.12</artifactId>
27-
<version>${project.parent.version}</version>
28-
</dependency>
29-
</dependencies>
14+
<profiles>
15+
<profile>
16+
<id>scala-2.11</id>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.jetbrains.kotlinx.spark</groupId>
20+
<artifactId>examples-2.4_2.11</artifactId>
21+
<version>${project.parent.version}</version>
22+
</dependency>
23+
</dependencies>
24+
</profile>
25+
<profile>
26+
<id>scala-2.12</id>
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.jetbrains.kotlinx.spark</groupId>
30+
<artifactId>examples-2.4_2.12</artifactId>
31+
<version>${project.parent.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.jetbrains.kotlinx.spark</groupId>
35+
<artifactId>examples-3.0_2.12</artifactId>
36+
<version>${project.parent.version}</version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
3041

3142
</project>

0 commit comments

Comments
 (0)