Skip to content

Commit a36b848

Browse files
committed
Migration from gradle to maven
1 parent 49dfc03 commit a36b848

File tree

9 files changed

+367
-130
lines changed

9 files changed

+367
-130
lines changed

build.gradle

-44
This file was deleted.

core/build.gradle

-12
This file was deleted.

core/pom.xml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?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/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<artifactId>kotlin-spark-api-parent</artifactId>
6+
<groupId>org.jetbrains.kotlin.spark</groupId>
7+
<version>1.0-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>core</artifactId>
10+
<name>Kotlin Spark API: Scala core</name>
11+
12+
<properties>
13+
<maven.compiler.source>1.8</maven.compiler.source>
14+
<maven.compiler.target>1.8</maven.compiler.target>
15+
<encoding>UTF-8</encoding>
16+
<scala.version>2.12.6</scala.version>
17+
<scala.compat.version>2.12</scala.compat.version>
18+
</properties>
19+
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.scala-lang</groupId>
23+
<artifactId>scala-library</artifactId>
24+
<version>${scala.version}</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.apache.spark</groupId>
28+
<artifactId>spark-sql_2.12</artifactId>
29+
<version>3.0.0-preview2</version>
30+
<scope>provided</scope>
31+
</dependency>
32+
</dependencies>
33+
34+
<build>
35+
<sourceDirectory>src/main/scala</sourceDirectory>
36+
<testSourceDirectory>src/test/scala</testSourceDirectory>
37+
<plugins>
38+
<plugin>
39+
<!-- see http://davidb.github.com/scala-maven-plugin -->
40+
<groupId>net.alchim31.maven</groupId>
41+
<artifactId>scala-maven-plugin</artifactId>
42+
<version>4.4.0</version>
43+
<executions>
44+
<execution>
45+
<goals>
46+
<goal>compile</goal>
47+
<goal>testCompile</goal>
48+
</goals>
49+
<configuration>
50+
<args>
51+
<arg>-dependencyfile</arg>
52+
<arg>${project.build.directory}/.scala_dependencies</arg>
53+
</args>
54+
</configuration>
55+
</execution>
56+
</executions>
57+
</plugin>
58+
</plugins>
59+
</build>
60+
</project>

examples/build.gradle

-32
This file was deleted.

examples/pom.xml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?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"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<artifactId>kotlin-spark-api-parent</artifactId>
9+
<groupId>org.jetbrains.kotlin.spark</groupId>
10+
<version>1.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<groupId>org.jetbrains.kotlin.spark.examples</groupId>
14+
<artifactId>examples</artifactId>
15+
<version>1.0-SNAPSHOT</version>
16+
<packaging>jar</packaging>
17+
18+
<name>Kotlin Spark API: Examples</name>
19+
20+
<properties>
21+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22+
<kotlin.version>1.3.72</kotlin.version>
23+
<kotlin.code.style>official</kotlin.code.style>
24+
<junit.version>4.12</junit.version>
25+
</properties>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.jetbrains.kotlin.spark</groupId>
30+
<artifactId>kotlin-spark-api</artifactId>
31+
<version>${project.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.apache.spark</groupId>
35+
<artifactId>spark-sql_2.12</artifactId>
36+
<version>3.0.0-preview2</version>
37+
</dependency>
38+
39+
</dependencies>
40+
41+
<build>
42+
<sourceDirectory>src/main/kotlin</sourceDirectory>
43+
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
44+
45+
<plugins>
46+
<plugin>
47+
<groupId>org.jetbrains.kotlin</groupId>
48+
<artifactId>kotlin-maven-plugin</artifactId>
49+
<version>${kotlin.version}</version>
50+
<executions>
51+
<execution>
52+
<id>compile</id>
53+
<phase>compile</phase>
54+
<goals>
55+
<goal>compile</goal>
56+
</goals>
57+
<configuration>
58+
<jvmTarget>1.8</jvmTarget>
59+
</configuration>
60+
</execution>
61+
<execution>
62+
<id>test-compile</id>
63+
<phase>test-compile</phase>
64+
<goals>
65+
<goal>test-compile</goal>
66+
</goals>
67+
</execution>
68+
</executions>
69+
</plugin>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-assembly-plugin</artifactId>
73+
<version>2.4</version>
74+
<configuration>
75+
<descriptorRefs>
76+
<descriptorRef>jar-with-dependencies</descriptorRef>
77+
</descriptorRefs>
78+
<archive>
79+
<manifest>
80+
<mainClass>org.jetbrains.spark.api.examples.WordCountKt</mainClass>
81+
</manifest>
82+
</archive>
83+
</configuration>
84+
<executions>
85+
<execution>
86+
<phase>package</phase>
87+
<goals>
88+
<goal>single</goal>
89+
</goals>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
</plugins>
94+
</build>
95+
96+
</project>

kotlin-api/build.gradle

-34
This file was deleted.

0 commit comments

Comments
 (0)