| <?xml version="1.0" encoding="UTF-8"?> |
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://maven.apache.org/POM/4.0.0" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.meecrowave</groupId> |
| <artifactId>meecrowave-examples</artifactId> |
| <version>1.2.7-SNAPSHOT</version> |
| </parent> |
| |
| |
| <artifactId>samples-rest-trivial-kotlin</artifactId> |
| <name>REST (trivial) - Kotlin</name> |
| |
| <properties> |
| <!--<kotlin.version>1.2.71</kotlin.version>--> |
| <kotlin.version>1.3.11</kotlin.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-stdlib-jdk8</artifactId> |
| <version>${kotlin.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-test-junit</artifactId> |
| <version>${kotlin.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| |
| <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 --> |
| <dependency> |
| <groupId>org.apache.meecrowave</groupId> |
| <artifactId>meecrowave-specs-api</artifactId> |
| <version>${meecrowave.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.meecrowave</groupId> |
| <artifactId>meecrowave-core</artifactId> |
| <version>${meecrowave.version}</version> |
| </dependency> |
| |
| <!-- our test dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit4.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.meecrowave</groupId> |
| <artifactId>meecrowave-junit</artifactId> |
| <version>${meecrowave.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <!-- |
| For starting meecrowave via Maven. Just run |
| $> mvn clean install meecrowave:run |
| --> |
| <groupId>org.apache.meecrowave</groupId> |
| <artifactId>meecrowave-maven-plugin</artifactId> |
| <version>${meecrowave.version}</version> |
| </plugin> |
| |
| <plugin> |
| <artifactId>kotlin-maven-plugin</artifactId> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <version>${kotlin.version}</version> |
| <configuration> |
| <compilerPlugins> |
| <plugin>all-open</plugin> |
| </compilerPlugins> |
| <pluginOptions> |
| <option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option> |
| </pluginOptions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <configuration> |
| <sourceDirs> |
| <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| <sourceDir>${project.basedir}/src/main/java</sourceDir> |
| </sourceDirs> |
| </configuration> |
| </execution> |
| <execution> |
| <id>test-compile</id> |
| <goals> |
| <goal>test-compile</goal> |
| </goals> |
| <configuration> |
| <sourceDirs> |
| <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| <sourceDir>${project.basedir}/src/test/java</sourceDir> |
| </sourceDirs> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-maven-allopen</artifactId> |
| <version>${kotlin.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <executions> |
| <!-- Replacing default-compile as it is treated specially by maven --> |
| <execution> |
| <id>default-compile</id> |
| <phase>none</phase> |
| </execution> |
| <!-- Replacing default-testCompile as it is treated specially by maven --> |
| <execution> |
| <id>default-testCompile</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>java-compile</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>java-test-compile</id> |
| <phase>test-compile</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |