Yigit Boyar | 73473d5 | 2016-02-12 13:22:18 -0800 | [diff] [blame^] | 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.0.0-rc-1036</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 | <groupId>org.codehaus.mojo</groupId>
|
| 17 | <artifactId>build-helper-maven-plugin</artifactId>
|
| 18 | <version>1.7</version>
|
| 19 | <executions>
|
| 20 | <execution>
|
| 21 | <id>attach-artifacts</id>
|
| 22 | <phase>compile</phase>
|
| 23 | <goals>
|
| 24 | <goal>attach-artifact</goal>
|
| 25 | </goals>
|
| 26 | <configuration>
|
| 27 | <artifacts>
|
| 28 | <artifact>
|
| 29 | <file>${kotlin-dist}/kotlin-compiler-sources.jar</file>
|
| 30 | <type>jar</type>
|
| 31 | <classifier>sources</classifier>
|
| 32 | </artifact>
|
| 33 | <artifact>
|
| 34 | <file>${kotlin-dist}/kotlin-compiler-javadoc.jar</file>
|
| 35 | <type>jar</type>
|
| 36 | <classifier>javadoc</classifier>
|
| 37 | </artifact>
|
| 38 | </artifacts>
|
| 39 | </configuration>
|
| 40 | </execution>
|
| 41 | <execution>
|
| 42 | <id>attach-empty-javadoc</id>
|
| 43 | <phase>prepare-package</phase>
|
| 44 | <goals>
|
| 45 | <goal>attach-artifact</goal>
|
| 46 | </goals>
|
| 47 | <configuration>
|
| 48 | <skipAttach>true</skipAttach>
|
| 49 | </configuration>
|
| 50 | </execution>
|
| 51 | </executions>
|
| 52 | </plugin>
|
| 53 | <plugin>
|
| 54 | <artifactId>maven-shade-plugin</artifactId>
|
| 55 | <version>2.4.1</version>
|
| 56 | <executions>
|
| 57 | <execution>
|
| 58 | <phase>package</phase>
|
| 59 | <goals>
|
| 60 | <goal>shade</goal>
|
| 61 | </goals>
|
| 62 | <configuration>
|
| 63 | <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
|
| 64 | <shadedArtifactAttached>false</shadedArtifactAttached>
|
| 65 | <createDependencyReducedPom>true</createDependencyReducedPom>
|
| 66 | <filters>
|
| 67 | <filter>
|
| 68 | <artifact>*:kotlin-runtime</artifact>
|
| 69 | <excludes>
|
| 70 | <exclude>META-INF/**</exclude>
|
| 71 | </excludes>
|
| 72 | <artifact>*:kotlin-reflect</artifact>
|
| 73 | <excludes>
|
| 74 | <exclude>META-INF/**</exclude>
|
| 75 | </excludes>
|
| 76 | <artifact>*:kotlin-stdlib</artifact>
|
| 77 | <excludes>
|
| 78 | <exclude>META-INF/**</exclude>
|
| 79 | </excludes>
|
| 80 | </filter>
|
| 81 | </filters>
|
| 82 | <relocations>
|
| 83 | <relocation>
|
| 84 | <pattern>com.google</pattern>
|
| 85 | <shadedPattern>${kotlin.relocated.package}.com.google</shadedPattern>
|
| 86 | </relocation>
|
| 87 | <relocation>
|
| 88 | <pattern>com.sampullara</pattern>
|
| 89 | <shadedPattern>${kotlin.relocated.package}.com.sampullara</shadedPattern>
|
| 90 | </relocation>
|
| 91 | <relocation>
|
| 92 | <pattern>org.apache</pattern>
|
| 93 | <shadedPattern>${kotlin.relocated.package}.org.apache</shadedPattern>
|
| 94 | </relocation>
|
| 95 | <relocation>
|
| 96 | <pattern>org.jdom</pattern>
|
| 97 | <shadedPattern>${kotlin.relocated.package}.org.jdom</shadedPattern>
|
| 98 | </relocation>
|
| 99 | <relocation>
|
| 100 | <pattern>org.fusesource</pattern>
|
| 101 | <shadedPattern>${kotlin.relocated.package}.org.fusesource</shadedPattern>
|
| 102 | <excludes>
|
| 103 | <exclude>org.fusesource.jansi.internal.CLibrary</exclude>
|
| 104 | </excludes>
|
| 105 | </relocation>
|
| 106 | <relocation>
|
| 107 | <pattern>org.picocontainer</pattern>
|
| 108 | <shadedPattern>${kotlin.relocated.package}.org.picocontainer</shadedPattern>
|
| 109 | </relocation>
|
| 110 | <relocation>
|
| 111 | <pattern>jline</pattern>
|
| 112 | <shadedPattern>${kotlin.relocated.package}.jline</shadedPattern>
|
| 113 | </relocation>
|
| 114 | <relocation>
|
| 115 | <pattern>gnu</pattern>
|
| 116 | <shadedPattern>${kotlin.relocated.package}.gnu</shadedPattern>
|
| 117 | </relocation>
|
| 118 | <relocation>
|
| 119 | <pattern>javax.inject</pattern>
|
| 120 | <shadedPattern>${kotlin.relocated.package}.javax.inject</shadedPattern>
|
| 121 | </relocation>
|
| 122 | </relocations>
|
| 123 | </configuration>
|
| 124 | </execution>
|
| 125 | </executions>
|
| 126 | </plugin>
|
| 127 | <plugin>
|
| 128 | <groupId>org.jetbrains.kotlin</groupId>
|
| 129 | <artifactId>kotlin-maven-plugin</artifactId>
|
| 130 | <version>${project.version}</version>
|
| 131 | <executions>
|
| 132 | <execution>
|
| 133 | <id>test-compile</id>
|
| 134 | <phase>integration-test</phase>
|
| 135 | <goals>
|
| 136 | <goal>test-compile</goal>
|
| 137 | </goals>
|
| 138 | </execution>
|
| 139 | </executions>
|
| 140 | </plugin>
|
| 141 | <plugin>
|
| 142 | <artifactId>maven-surefire-plugin</artifactId>
|
| 143 | <version>${surefire-version}</version>
|
| 144 | <executions>
|
| 145 | <execution>
|
| 146 | <id>integration-test</id>
|
| 147 | <phase>integration-test</phase>
|
| 148 | <goals>
|
| 149 | <goal>test</goal>
|
| 150 | </goals>
|
| 151 | </execution>
|
| 152 | </executions>
|
| 153 | </plugin>
|
| 154 | </plugins>
|
| 155 | </build>
|
| 156 | <dependencies>
|
| 157 | <dependency>
|
| 158 | <groupId>junit</groupId>
|
| 159 | <artifactId>junit</artifactId>
|
| 160 | <version>4.11</version>
|
| 161 | <scope>test</scope>
|
| 162 | <exclusions>
|
| 163 | <exclusion>
|
| 164 | <artifactId>hamcrest-core</artifactId>
|
| 165 | <groupId>org.hamcrest</groupId>
|
| 166 | </exclusion>
|
| 167 | </exclusions>
|
| 168 | </dependency>
|
| 169 | </dependencies>
|
| 170 | <properties>
|
| 171 | <kotlin.relocated.package>org.jetbrains.kotlin.relocated</kotlin.relocated.package>
|
| 172 | <maven-plugin-anno.version>1.4.1</maven-plugin-anno.version>
|
| 173 | <maven.version>3.0.4</maven.version>
|
| 174 | <surefire-version>2.16</surefire-version>
|
| 175 | </properties>
|
| 176 | </project>
|
| 177 |
|