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.0.0</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.37.1</selenium.version> 50 51 <kotlin-dist>${project-root}/dist</kotlin-dist> 52 <kotlin-sdk>${kotlin-dist}/kotlinc</kotlin-sdk> 53 54 <maven.compiler.source>1.6</maven.compiler.source> 55 <maven.compiler.target>1.6</maven.compiler.target> 56 </properties> 57 58 <prerequisites> 59 <maven>3.0.2</maven> 60 </prerequisites> 61 62 <distributionManagement> 63 <repository> 64 <id>${deploy-repo}</id> 65 <url>${deploy-url}</url> 66 </repository> 67 <snapshotRepository> 68 <id>sonatype-nexus-staging</id> 69 <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 70 </snapshotRepository> 71 </distributionManagement> 72 73 <modules> 74 <module>tools/kotlin-compiler</module> 75 <module>tools/kotlin-compiler-embeddable</module> 76 <module>tools/kotlin-jdk-annotations</module> 77 <module>tools/kotlin-android-sdk-annotations</module> 78 <module>tools/kotlin-maven-plugin</module> 79 80 <module>tools/runtime</module> 81 <module>stdlib</module> 82 <module>tools/kotlin-reflect</module> 83 <module>tools/kotlin-osgi-bundle</module> 84 85 <!--NB! kotlin-js-library should be built before kotlin-gradle-plugin--> 86 <!--because it is used in tests but cannot be added as test-dependency--> 87 <!--(kotlin-gradle-plugin module will be recognized as kotlin-js module)--> 88 <module>tools/idl2k</module> 89 <module>tools/kotlin-js-library</module> 90 <module>tools/kotlin-annotation-processing</module> 91 <module>examples/annotation-processor-example</module> 92 <module>tools/kotlin-gradle-plugin</module> 93 <module>tools/kotlin-gradle-plugin-core</module> 94 <module>tools/kotlin-gradle-plugin-api</module> 95 <module>tools/kotlin-android-extensions</module> 96 <module>tools/kotlin-maven-plugin-test</module> 97 <module>tools/kotlin-js-tests</module> 98 <module>tools/kotlin-js-tests-junit</module> 99 100 <module>kotlin.test</module> 101 102 <module>examples/kotlin-java-example</module> 103 <module>examples/js-example</module> 104 <module>examples/kotlin-js-library-example</module> 105 <module>examples/browser-example</module> 106 <module>examples/browser-example-with-library</module> 107 <module>examples/kotlin-gradle-subplugin-example</module> 108 </modules> 109 110 <dependencies> 111 <dependency> 112 <groupId>junit</groupId> 113 <artifactId>junit</artifactId> 114 <version>${junit-version}</version> 115 <scope>test</scope> 116 </dependency> 117 </dependencies> 118 119 <build> 120 <pluginManagement> 121 <plugins> 122 <plugin> 123 <groupId>org.apache.maven.plugins</groupId> 124 <artifactId>maven-compiler-plugin</artifactId> 125 <version>2.3.2</version> 126 <configuration> 127 <source>${maven.compiler.source}</source> 128 <target>${maven.compiler.target}</target> 129 </configuration> 130 </plugin> 131 <plugin> 132 <groupId>org.apache.maven.plugins</groupId> 133 <artifactId>maven-source-plugin</artifactId> 134 <version>2.1.2</version> 135 </plugin> 136 <plugin> 137 <groupId>org.apache.maven.plugins</groupId> 138 <artifactId>maven-javadoc-plugin</artifactId> 139 <version>2.9</version> 140 </plugin> 141 <plugin> 142 <groupId>org.apache.maven.plugins</groupId> 143 <artifactId>maven-deploy-plugin</artifactId> 144 <version>2.7</version> 145 </plugin> 146 <plugin> 147 <groupId>org.codehaus.mojo</groupId> 148 <artifactId>build-helper-maven-plugin</artifactId> 149 <version>1.7</version> 150 </plugin> 151 </plugins> 152 </pluginManagement> 153 154 <plugins> 155 <plugin> 156 <artifactId>maven-surefire-plugin</artifactId> 157 <version>${surefire-version}</version> 158 <configuration> 159 <forkMode>once</forkMode> 160 <useSystemClassLoader>false</useSystemClassLoader> 161 <useManifestOnlyJar>false</useManifestOnlyJar> 162 <failIfNoTests>false</failIfNoTests> 163 <includes> 164 <include>**/*Test.*</include> 165 </includes> 166 <excludes> 167 </excludes> 168 <systemProperties> 169 <project.version>${project.version}</project.version> 170 </systemProperties> 171 </configuration> 172 </plugin> 173 174 <plugin> 175 <groupId>org.apache.maven.plugins</groupId> 176 <artifactId>maven-source-plugin</artifactId> 177 <configuration> 178 </configuration> 179 <executions> 180 <execution> 181 <phase>package</phase> 182 <id>attach-sources</id> 183 <goals> 184 <goal>jar-no-fork</goal> 185 </goals> 186 </execution> 187 </executions> 188 </plugin> 189 190 <plugin> 191 <groupId>org.codehaus.mojo</groupId> 192 <artifactId>build-helper-maven-plugin</artifactId> 193 <executions> 194 <execution> 195 <id>attach-empty-javadoc</id> 196 <phase>prepare-package</phase> 197 <goals> 198 <goal>attach-artifact</goal> 199 </goals> 200 <configuration> 201 <artifacts> 202 <artifact> 203 <file>${highest-basedir}/lib/empty-javadoc.jar</file> 204 <type>jar</type> 205 <classifier>javadoc</classifier> 206 </artifact> 207 </artifacts> 208 </configuration> 209 </execution> 210 </executions> 211 </plugin> 212 213 <plugin> 214 <groupId>org.commonjava.maven.plugins</groupId> 215 <artifactId>directory-maven-plugin</artifactId> 216 <version>0.1</version> 217 <executions> 218 <execution> 219 <id>directories</id> 220 <goals> 221 <goal>highest-basedir</goal> 222 </goals> 223 <phase>initialize</phase> 224 <configuration> 225 <property>highest-basedir</property> 226 </configuration> 227 </execution> 228 </executions> 229 </plugin> 230 231 <plugin> 232 <artifactId>maven-jar-plugin</artifactId> 233 <configuration> 234 <archive> 235 <manifest> 236 <addDefaultImplementationEntries>true</addDefaultImplementationEntries> 237 </manifest> 238 </archive> 239 </configuration> 240 </plugin> 241 </plugins> 242 </build> 243 244 <profiles> 245 <profile> 246 <id>sign-artifacts</id> 247 <build> 248 <plugins> 249 <plugin> 250 <artifactId>maven-gpg-plugin</artifactId> 251 <version>1.4</version> 252 <configuration> 253 <passphrase>${kotlin.key.passphrase}</passphrase> 254 <keyname>${kotlin.key.name}</keyname> 255 <homedir>${highest-basedir}/.gnupg</homedir> 256 </configuration> 257 <executions> 258 <execution> 259 <id>sign-artifacts</id> 260 <phase>verify</phase> 261 <goals> 262 <goal>sign</goal> 263 </goals> 264 </execution> 265 </executions> 266 </plugin> 267 </plugins> 268 </build> 269 </profile> 270 </profiles> 271 </project> 272