|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 4 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 5 | + |
| 6 | + <modelVersion>4.0.0</modelVersion> |
| 7 | + |
| 8 | + <groupId>org.jetbrains.kotlin.examples</groupId> |
| 9 | + <artifactId>querydsl-maven-example</artifactId> |
| 10 | + <version>1.0-SNAPSHOT</version> |
| 11 | + |
| 12 | + <properties> |
| 13 | + <kotlin.version>1.2-SNAPSHOT</kotlin.version> |
| 14 | + <junit.version>4.12</junit.version> |
| 15 | + <main.class>ru.trylogic.querydsl.example.Test</main.class> |
| 16 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 17 | + </properties> |
| 18 | + |
| 19 | + <dependencies> |
| 20 | + <dependency> |
| 21 | + <groupId>com.mysema.querydsl</groupId> |
| 22 | + <artifactId>querydsl-jpa</artifactId> |
| 23 | + <version>3.6.3</version> |
| 24 | + </dependency> |
| 25 | + <dependency> |
| 26 | + <groupId>com.h2database</groupId> |
| 27 | + <artifactId>h2</artifactId> |
| 28 | + <version>1.4.187</version> |
| 29 | + </dependency> |
| 30 | + <dependency> |
| 31 | + <groupId>org.hibernate</groupId> |
| 32 | + <artifactId>hibernate-entitymanager</artifactId> |
| 33 | + <version>4.3.5.Final</version> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>org.jetbrains.kotlin</groupId> |
| 37 | + <artifactId>kotlin-stdlib</artifactId> |
| 38 | + <version>${kotlin.version}</version> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>junit</groupId> |
| 42 | + <artifactId>junit</artifactId> |
| 43 | + <version>${junit.version}</version> |
| 44 | + <scope>test</scope> |
| 45 | + </dependency> |
| 46 | + </dependencies> |
| 47 | + |
| 48 | + <build> |
| 49 | + <plugins> |
| 50 | + <plugin> |
| 51 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 52 | + <groupId>org.jetbrains.kotlin</groupId> |
| 53 | + <version>${kotlin.version}</version> |
| 54 | + |
| 55 | + <executions> |
| 56 | + <execution> |
| 57 | + <id>kapt</id> |
| 58 | + <goals> |
| 59 | + <goal>kapt</goal> |
| 60 | + </goals> |
| 61 | + <configuration> |
| 62 | + <sourceDirs> |
| 63 | + <sourceDir>src/main/kotlin</sourceDir> |
| 64 | + <!-- <sourceDir>src/main/java</sourceDir> --> |
| 65 | + </sourceDirs> |
| 66 | + <annotationProcessorPaths> |
| 67 | + <annotationProcessorPath> |
| 68 | + <groupId>com.mysema.querydsl</groupId> |
| 69 | + <artifactId>querydsl-apt</artifactId> |
| 70 | + <version>3.6.3</version> |
| 71 | + <classifier>jpa</classifier> |
| 72 | + </annotationProcessorPath> |
| 73 | + </annotationProcessorPaths> |
| 74 | + </configuration> |
| 75 | + </execution> |
| 76 | + <execution> |
| 77 | + <id>compile</id> |
| 78 | + <goals> |
| 79 | + <goal>compile</goal> |
| 80 | + </goals> |
| 81 | + <configuration> |
| 82 | + <sourceDirs> |
| 83 | + <sourceDir>src/main/kotlin</sourceDir> |
| 84 | + <sourceDir>src/main/java</sourceDir> |
| 85 | + </sourceDirs> |
| 86 | + </configuration> |
| 87 | + </execution> |
| 88 | + <execution> |
| 89 | + <id>test-kapt</id> |
| 90 | + <goals> |
| 91 | + <goal>test-kapt</goal> |
| 92 | + </goals> |
| 93 | + <configuration> |
| 94 | + <sourceDirs> |
| 95 | + <sourceDir>src/test/kotlin</sourceDir> |
| 96 | + <sourceDir>src/test/java</sourceDir> |
| 97 | + </sourceDirs> |
| 98 | + <annotationProcessorPaths> |
| 99 | + <annotationProcessorPath> |
| 100 | + <groupId>com.google.dagger</groupId> |
| 101 | + <artifactId>dagger-compiler</artifactId> |
| 102 | + <version>2.9</version> |
| 103 | + </annotationProcessorPath> |
| 104 | + </annotationProcessorPaths> |
| 105 | + </configuration> |
| 106 | + </execution> |
| 107 | + <execution> |
| 108 | + <id>test-compile</id> |
| 109 | + <goals> |
| 110 | + <goal>test-compile</goal> |
| 111 | + </goals> |
| 112 | + <configuration> |
| 113 | + <sourceDirs> |
| 114 | + <sourceDir>src/test/kotlin</sourceDir> |
| 115 | + <sourceDir>src/test/java</sourceDir> |
| 116 | + <sourceDir>target/generated-sources/kapt/test</sourceDir> |
| 117 | + </sourceDirs> |
| 118 | + </configuration> |
| 119 | + </execution> |
| 120 | + </executions> |
| 121 | + </plugin> |
| 122 | + <plugin> |
| 123 | + <groupId>org.apache.maven.plugins</groupId> |
| 124 | + <artifactId>maven-compiler-plugin</artifactId> |
| 125 | + <version>3.5.1</version> |
| 126 | + <configuration> |
| 127 | + <proc>none</proc> |
| 128 | + <source>1.6</source> |
| 129 | + <target>1.6</target> |
| 130 | + </configuration> |
| 131 | + <executions> |
| 132 | + <!-- Replacing default-compile as it is treated specially by maven --> |
| 133 | + <execution> |
| 134 | + <id>default-compile</id> |
| 135 | + <phase>none</phase> |
| 136 | + </execution> |
| 137 | + <!-- Replacing default-testCompile as it is treated specially by maven --> |
| 138 | + <execution> |
| 139 | + <id>default-testCompile</id> |
| 140 | + <phase>none</phase> |
| 141 | + </execution> |
| 142 | + <execution> |
| 143 | + <id>java-compile</id> |
| 144 | + <phase>compile</phase> |
| 145 | + <goals> |
| 146 | + <goal>compile</goal> |
| 147 | + </goals> |
| 148 | + </execution> |
| 149 | + <execution> |
| 150 | + <id>java-test-compile</id> |
| 151 | + <phase>test-compile</phase> |
| 152 | + <goals> <goal>testCompile</goal> </goals> |
| 153 | + </execution> |
| 154 | + </executions> |
| 155 | + </plugin> |
| 156 | + <plugin> |
| 157 | + <groupId>org.apache.maven.plugins</groupId> |
| 158 | + <artifactId>maven-jar-plugin</artifactId> |
| 159 | + <version>2.6</version> |
| 160 | + <configuration> |
| 161 | + <archive> |
| 162 | + <manifest> |
| 163 | + <addClasspath>true</addClasspath> |
| 164 | + <mainClass>${main.class}</mainClass> |
| 165 | + </manifest> |
| 166 | + </archive> |
| 167 | + </configuration> |
| 168 | + </plugin> |
| 169 | + <plugin> |
| 170 | + <groupId>org.codehaus.mojo</groupId> |
| 171 | + <artifactId>exec-maven-plugin</artifactId> |
| 172 | + <version>1.2.1</version> |
| 173 | + <executions> |
| 174 | + <execution> |
| 175 | + <phase>test</phase> |
| 176 | + <goals> |
| 177 | + <goal>java</goal> |
| 178 | + </goals> |
| 179 | + </execution> |
| 180 | + </executions> |
| 181 | + <configuration> |
| 182 | + <mainClass>${main.class}</mainClass> |
| 183 | + </configuration> |
| 184 | + </plugin> |
| 185 | + </plugins> |
| 186 | + </build> |
| 187 | +</project> |
0 commit comments