|
| 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> |
0 commit comments