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</groupId> 9 <artifactId>kotlin-project</artifactId> 10 <version>1.1.2-4</version> 11 <packaging>pom</packaging> 12 13 <name>Kotlin</name> 14 <description>Kotlin is a statically typed programming language that compiles to JVM byte codes and JavaScript</description> 15 <url>http://kotlinlang.org/</url> 16 17 <licenses> 18 <license> 19 <name>The Apache Software License, Version 2.0</name> 20 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 21 <distribution>repo</distribution> 22 <comments>A business-friendly OSS license</comments> 23 </license> 24 </licenses> 25 26 <scm> 27 <url>https://github.com/JetBrains/kotlin</url> 28 <connection>scm:git:https://github.com/JetBrains/kotlin.git</connection> 29 <developerConnection>scm:git:https://github.com/JetBrains/kotlin.git</developerConnection> 30 </scm> 31 32 <developers> 33 <developer> 34 <id>JetBrains</id> 35 <name>JetBrains Team</name> 36 <organization>JetBrains</organization> 37 <organizationUrl>http://www.jetbrains.com</organizationUrl> 38 </developer> 39 </developers> 40 41 <properties> 42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 43 <project-root>../../..</project-root> 44 45 <junit-version>4.11</junit-version> 46 <pegdown.version>1.1.0</pegdown.version> 47 <surefire-version>2.16</surefire-version> 48 <exec-maven-plugin.version>1.2.1</exec-maven-plugin.version> 49 <selenium.version>2.52.0</selenium.version> 50 51 <kotlin-dist>${project-root}/dist</kotlin-dist> 52 <kotlin-sdk>${kotlin-dist}/kotlinc</kotlin-sdk> 53 <kotlin.compiler.jdkHome>${env.JDK_18}</kotlin.compiler.jdkHome> 54 55 <kotlin.language.version>1.1</kotlin.language.version> 56 57 <maven.compiler.source>1.6</maven.compiler.source> 58 <maven.compiler.target>1.6</maven.compiler.target> 59 </properties> 60 61 <prerequisites> 62 <maven>3.0.2</maven> 63 </prerequisites> 64 65 <distributionManagement> 66 <repository> 67 <id>${deploy-repo}</id> 68 <url>${deploy-url}</url> 69 </repository> 70 <snapshotRepository> 71 <id>sonatype-nexus-staging</id> 72 <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 73 </snapshotRepository> 74 </distributionManagement> 75 76 <modules> 77 <module>tools/kotlin-compiler</module> 78 <module>tools/kotlin-compiler-embeddable</module> 79 <module>tools/kotlin-compiler-client-embeddable</module> 80 <module>tools/kotlin-compiler-client-embeddable-test</module> 81 <module>tools/native-platform</module> 82 <module>tools/kotlin-compiler-runner</module> 83 <module>tools/kotlin-daemon-client</module> 84 <module>tools/kotlin-build-common-test</module> 85 <module>tools/kotlin-maven-plugin</module> 86 87 <module>tools/runtime</module> 88 <module>tools/script-runtime</module> 89 <module>kotlin.test</module> 90 <module>stdlib/common</module> 91 <module>stdlib</module> 92 <module>stdlib/jre7</module> 93 <module>stdlib/jre8</module> 94 <module>stdlib/samples</module> 95 <module>tools/kotlin-reflect</module> 96 <module>tools/kotlin-osgi-bundle</module> 97 98 <module>tools/maven-archetypes</module> 99 100 <module>tools/binary-compatibility-validator</module> 101 102 <!--NB! kotlin-js-library should be built before kotlin-gradle-plugin-integration-tests--> 103 <!--because it is used in tests but cannot be added as test-dependency--> 104 <!--(kotlin-gradle-plugin module will be recognized as kotlin-js module)--> 105 <module>tools/idl2k</module> 106 <module>tools/kotlin-js-library</module> 107 <module>tools/kotlin-js-tests</module> 108 <module>tools/kotlin-js-tests-junit</module> 109 <module>tools/kotlin-annotation-processing</module> 110 <module>tools/kotlin-annotation-processing-maven</module> 111 <module>tools/kotlin-maven-allopen</module> 112 <module>tools/kotlin-maven-noarg</module> 113 114 <module>tools/kotlin-script-util</module> 115 <module>tools/kotlin-android-extensions</module> 116 <module>tools/kotlin-maven-plugin-test</module> 117 118 <module>examples/annotation-processor-example</module> 119 <module>examples/kotlin-java-example</module> 120 <module>examples/js-example</module> 121 <module>examples/kotlin-js-library-example</module> 122 <module>examples/browser-example</module> 123 <module>examples/browser-example-with-library</module> 124 <module>examples/kotlin-jsr223-local-example</module> 125 <module>examples/kotlin-jsr223-daemon-local-eval-example</module> 126 127 <!-- <module>tools/kotlin-allopen</module> --> 128 <!-- <module>tools/kotlin-noarg</module> --> 129 <!-- <module>tools/kotlin-gradle-plugin</module> --> 130 <!-- <module>tools/kotlin-gradle-plugin-api</module> --> 131 <!-- <module>examples/kotlin-gradle-subplugin-example</module> --> 132 <!-- <module>tools/kotlin-gradle-plugin-integration-tests</module> --> 133 </modules> 134 135 <dependencies> 136 <dependency> 137 <groupId>junit</groupId> 138 <artifactId>junit</artifactId> 139 <version>${junit-version}</version> 140 <scope>test</scope> 141 </dependency> 142 </dependencies> 143 144 <build> 145 <pluginManagement> 146 <plugins> 147 <plugin> 148 <groupId>org.apache.maven.plugins</groupId> 149 <artifactId>maven-compiler-plugin</artifactId> 150 <version>2.3.2</version> 151 <configuration> 152 <source>${maven.compiler.source}</source> 153 <target>${maven.compiler.target}</target> 154 </configuration> 155 </plugin> 156 <plugin> 157 <groupId>org.apache.maven.plugins</groupId> 158 <artifactId>maven-source-plugin</artifactId> 159 <version>2.1.2</version> 160 </plugin> 161 <plugin> 162 <groupId>org.apache.maven.plugins</groupId> 163 <artifactId>maven-javadoc-plugin</artifactId> 164 <version>2.9</version> 165 </plugin> 166 <plugin> 167 <groupId>org.apache.maven.plugins</groupId> 168 <artifactId>maven-deploy-plugin</artifactId> 169 <version>2.7</version> 170 </plugin> 171 <plugin> 172 <groupId>org.codehaus.mojo</groupId> 173 <artifactId>build-helper-maven-plugin</artifactId> 174 <version>1.7</version> 175 </plugin> 176 <plugin> 177 <groupId>org.apache.maven.plugins</groupId> 178 <artifactId>maven-jar-plugin</artifactId> 179 <version>2.6</version> 180 </plugin> 181 </plugins> 182 </pluginManagement> 183 184 <plugins> 185 <plugin> 186 <artifactId>maven-surefire-plugin</artifactId> 187 <version>${surefire-version}</version> 188 <configuration> 189 <forkMode>once</forkMode> 190 <jvm>${env.JDK_16}/bin/java</jvm> 191 <useSystemClassLoader>false</useSystemClassLoader> 192 <useManifestOnlyJar>false</useManifestOnlyJar> 193 <failIfNoTests>false</failIfNoTests> 194 <includes> 195 <include>**/*Test.*</include> 196 </includes> 197 <excludes> 198 </excludes> 199 <systemProperties> 200 <project.version>${project.version}</project.version> 201 </systemProperties> 202 </configuration> 203 </plugin> 204 205 <plugin> 206 <groupId>org.apache.maven.plugins</groupId> 207 <artifactId>maven-source-plugin</artifactId> 208 <configuration> 209 </configuration> 210 <executions> 211 <execution> 212 <phase>package</phase> 213 <id>attach-sources</id> 214 <goals> 215 <goal>jar-no-fork</goal> 216 </goals> 217 </execution> 218 </executions> 219 </plugin> 220 221 <plugin> 222 <groupId>org.codehaus.mojo</groupId> 223 <artifactId>build-helper-maven-plugin</artifactId> 224 <executions> 225 <execution> 226 <id>attach-empty-javadoc</id> 227 <phase>prepare-package</phase> 228 <goals> 229 <goal>attach-artifact</goal> 230 </goals> 231 <configuration> 232 <artifacts> 233 <artifact> 234 <file>${highest-basedir}/lib/empty-javadoc.jar</file> 235 <type>jar</type> 236 <classifier>javadoc</classifier> 237 </artifact> 238 </artifacts> 239 </configuration> 240 </execution> 241 </executions> 242 </plugin> 243 244 <plugin> 245 <groupId>org.commonjava.maven.plugins</groupId> 246 <artifactId>directory-maven-plugin</artifactId> 247 <version>0.1</version> 248 <executions> 249 <execution> 250 <id>directories</id> 251 <goals> 252 <goal>highest-basedir</goal> 253 </goals> 254 <phase>initialize</phase> 255 <configuration> 256 <property>highest-basedir</property> 257 </configuration> 258 </execution> 259 </executions> 260 </plugin> 261 262 <plugin> 263 <artifactId>maven-jar-plugin</artifactId> 264 <configuration> 265 <archive> 266 <manifest> 267 <addDefaultImplementationEntries>true</addDefaultImplementationEntries> 268 </manifest> 269 </archive> 270 </configuration> 271 </plugin> 272 </plugins> 273 </build> 274 275 <profiles> 276 <profile> 277 <id>sign-artifacts</id> 278 <build> 279 <plugins> 280 <plugin> 281 <artifactId>maven-gpg-plugin</artifactId> 282 <version>1.4</version> 283 <configuration> 284 <passphrase>${kotlin.key.passphrase}</passphrase> 285 <keyname>${kotlin.key.name}</keyname> 286 <homedir>${highest-basedir}/.gnupg</homedir> 287 </configuration> 288 <executions> 289 <execution> 290 <id>sign-artifacts</id> 291 <phase>verify</phase> 292 <goals> 293 <goal>sign</goal> 294 </goals> 295 </execution> 296 </executions> 297 </plugin> 298 </plugins> 299 </build> 300 </profile> 301 </profiles> 302 </project> 303