Home | History | Annotate | Download | only in 1.1.3
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      3   <parent>
      4     <artifactId>kotlin-project</artifactId>
      5     <groupId>org.jetbrains.kotlin</groupId>
      6     <version>1.1.3</version>
      7     <relativePath>../../../pom.xml</relativePath>
      8   </parent>
      9   <modelVersion>4.0.0</modelVersion>
     10   <artifactId>kotlin-compiler-embeddable</artifactId>
     11   <description>the Kotlin compiler embeddable</description>
     12   <build>
     13     <testSourceDirectory>test/kotlin</testSourceDirectory>
     14     <plugins>
     15       <plugin>
     16         <artifactId>maven-source-plugin</artifactId>
     17         <executions>
     18           <execution>
     19             <id>generate-sources-for-shade-plugin</id>
     20             <phase>package</phase>
     21             <goals>
     22               <goal>jar-no-fork</goal>
     23             </goals>
     24           </execution>
     25         </executions>
     26       </plugin>
     27       <plugin>
     28         <artifactId>maven-shade-plugin</artifactId>
     29         <version>3.0.0</version>
     30         <executions>
     31           <execution>
     32             <phase>package</phase>
     33             <goals>
     34               <goal>shade</goal>
     35             </goals>
     36             <configuration>
     37               <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
     38               <shadedArtifactAttached>false</shadedArtifactAttached>
     39               <createDependencyReducedPom>true</createDependencyReducedPom>
     40               <createSourcesJar>true</createSourcesJar>
     41               <filters>
     42                 <filter>
     43                   <artifact>*:kotlin-compiler</artifact>
     44                   <excludes>
     45                     <exclude>com/sun/jna/**</exclude>
     46                     <exclude>net/rubygrapefruit/**</exclude>
     47                   </excludes>
     48                 </filter>
     49               </filters>
     50               <relocations>
     51                 <relocation>
     52                   <pattern>com.intellij</pattern>
     53                   <shadedPattern>${kotlin.relocated.package}.com.intellij</shadedPattern>
     54                 </relocation>
     55                 <relocation>
     56                   <pattern>com.google</pattern>
     57                   <shadedPattern>${kotlin.relocated.package}.com.google</shadedPattern>
     58                 </relocation>
     59                 <relocation>
     60                   <pattern>org.apache</pattern>
     61                   <shadedPattern>${kotlin.relocated.package}.org.apache</shadedPattern>
     62                 </relocation>
     63                 <relocation>
     64                   <pattern>org.jdom</pattern>
     65                   <shadedPattern>${kotlin.relocated.package}.org.jdom</shadedPattern>
     66                 </relocation>
     67                 <relocation>
     68                   <pattern>org.fusesource</pattern>
     69                   <shadedPattern>${kotlin.relocated.package}.org.fusesource</shadedPattern>
     70                   <excludes>
     71                     <exclude>org.fusesource.jansi.internal.CLibrary</exclude>
     72                   </excludes>
     73                 </relocation>
     74                 <relocation>
     75                   <pattern>org.picocontainer</pattern>
     76                   <shadedPattern>${kotlin.relocated.package}.org.picocontainer</shadedPattern>
     77                 </relocation>
     78                 <relocation>
     79                   <pattern>jline</pattern>
     80                   <shadedPattern>${kotlin.relocated.package}.jline</shadedPattern>
     81                 </relocation>
     82                 <relocation>
     83                   <pattern>gnu</pattern>
     84                   <shadedPattern>${kotlin.relocated.package}.gnu</shadedPattern>
     85                 </relocation>
     86                 <relocation>
     87                   <pattern>javax.inject</pattern>
     88                   <shadedPattern>${kotlin.relocated.package}.javax.inject</shadedPattern>
     89                 </relocation>
     90               </relocations>
     91               <transformers>
     92                 <transformer />
     93               </transformers>
     94             </configuration>
     95           </execution>
     96         </executions>
     97       </plugin>
     98       <plugin>
     99         <groupId>org.jetbrains.kotlin</groupId>
    100         <artifactId>kotlin-maven-plugin</artifactId>
    101         <version>${project.version}</version>
    102         <executions>
    103           <execution>
    104             <id>test-compile</id>
    105             <phase>integration-test</phase>
    106             <goals>
    107               <goal>test-compile</goal>
    108             </goals>
    109           </execution>
    110         </executions>
    111       </plugin>
    112       <plugin>
    113         <artifactId>maven-surefire-plugin</artifactId>
    114         <version>${surefire-version}</version>
    115         <executions>
    116           <execution>
    117             <id>integration-test</id>
    118             <phase>integration-test</phase>
    119             <goals>
    120               <goal>test</goal>
    121             </goals>
    122           </execution>
    123         </executions>
    124         <configuration>
    125           <workingDirectory>${project.build.directory}</workingDirectory>
    126           <systemPropertyVariables>
    127             <compilerJar>${project.artifactId}-${project.parent.version}.jar</compilerJar>
    128           </systemPropertyVariables>
    129         </configuration>
    130       </plugin>
    131     </plugins>
    132   </build>
    133   <dependencies>
    134     <dependency>
    135       <groupId>org.jetbrains.kotlin</groupId>
    136       <artifactId>kotlin-test-junit</artifactId>
    137       <version>1.1.3</version>
    138       <scope>test</scope>
    139       <exclusions>
    140         <exclusion>
    141           <artifactId>kotlin-test</artifactId>
    142           <groupId>org.jetbrains.kotlin</groupId>
    143         </exclusion>
    144       </exclusions>
    145     </dependency>
    146     <dependency>
    147       <groupId>junit</groupId>
    148       <artifactId>junit</artifactId>
    149       <version>4.11</version>
    150       <scope>test</scope>
    151       <exclusions>
    152         <exclusion>
    153           <artifactId>hamcrest-core</artifactId>
    154           <groupId>org.hamcrest</groupId>
    155         </exclusion>
    156       </exclusions>
    157     </dependency>
    158   </dependencies>
    159   <properties>
    160     <kotlin.relocated.package>org.jetbrains.kotlin</kotlin.relocated.package>
    161     <maven-plugin-anno.version>1.4.1</maven-plugin-anno.version>
    162     <maven.version>3.0.4</maven.version>
    163     <surefire-version>2.16</surefire-version>
    164   </properties>
    165 </project>
    166 
    167