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