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.2-4</version> 7 <relativePath>../../pom.xml</relativePath> 8 </parent> 9 <modelVersion>4.0.0</modelVersion> 10 <artifactId>kotlin-stdlib</artifactId> 11 <build> 12 <sourceDirectory>src</sourceDirectory> 13 <testSourceDirectory>test</testSourceDirectory> 14 <plugins> 15 <plugin> 16 <groupId>org.jetbrains.kotlin</groupId> 17 <artifactId>kotlin-maven-plugin</artifactId> 18 <version>${project.version}</version> 19 <executions> 20 <execution> 21 <id>compile</id> 22 <phase>process-sources</phase> 23 <goals> 24 <goal>compile</goal> 25 </goals> 26 <configuration> 27 <args> 28 <arg>-Xmultifile-parts-inherit</arg> 29 <arg>-Xdump-declarations-to</arg> 30 <arg>${basedir}/target/stdlib-declarations.json</arg> 31 </args> 32 </configuration> 33 </execution> 34 <execution> 35 <id>test-compile</id> 36 <phase>test-compile</phase> 37 <goals> 38 <goal>test-compile</goal> 39 </goals> 40 <configuration> 41 <args> 42 <arg>-Xmulti-platform</arg> 43 </args> 44 <sourceDirs> 45 <dir>${project.basedir}/test</dir> 46 <dir>${project.basedir}/../kotlin.test/common/src/main/kotlin</dir> 47 <dir>${project.basedir}/../kotlin.test/jvm/src/main/kotlin</dir> 48 <dir>${project.basedir}/../kotlin.test/junit/src/main/kotlin</dir> 49 </sourceDirs> 50 </configuration> 51 </execution> 52 </executions> 53 <configuration> 54 <args> 55 <arg>-Xallow-kotlin-package</arg> 56 </args> 57 </configuration> 58 </plugin> 59 <plugin> 60 <artifactId>maven-shade-plugin</artifactId> 61 <version>2.4.3</version> 62 <executions> 63 <execution> 64 <phase>package</phase> 65 <goals> 66 <goal>shade</goal> 67 </goals> 68 </execution> 69 </executions> 70 <configuration> 71 <artifactSet> 72 <includes> 73 <include>org.jetbrains.kotlin:kotlin-runtime</include> 74 </includes> 75 </artifactSet> 76 <filters> 77 <filter> 78 <artifact>org.jetbrains.kotlin:kotlin-runtime</artifact> 79 <excludes> 80 <exclude>META-INF/maven/**</exclude> 81 </excludes> 82 </filter> 83 </filters> 84 <promoteTransitiveDependencies>true</promoteTransitiveDependencies> 85 <dependencyReducedPomLocation>${basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation> 86 <createSourcesJar>true</createSourcesJar> 87 </configuration> 88 </plugin> 89 <plugin> 90 <artifactId>maven-jar-plugin</artifactId> 91 <configuration> 92 <archive> 93 <manifestEntries> 94 <Kotlin-Version>${kotlin.language.version}</Kotlin-Version> 95 <Kotlin-Runtime-Component>Main</Kotlin-Runtime-Component> 96 </manifestEntries> 97 </archive> 98 </configuration> 99 </plugin> 100 <plugin> 101 <artifactId>maven-surefire-plugin</artifactId> 102 <configuration> 103 <forkMode>once</forkMode> 104 <jvm>${env.JDK_16}/bin/java</jvm> 105 </configuration> 106 </plugin> 107 </plugins> 108 </build> 109 <dependencies> 110 <dependency> 111 <groupId>org.jetbrains</groupId> 112 <artifactId>annotations</artifactId> 113 <version>13.0</version> 114 <scope>compile</scope> 115 </dependency> 116 </dependencies> 117 <properties> 118 <kotlin.compiler.jdkHome>${env.JDK_16}</kotlin.compiler.jdkHome> 119 </properties> 120 </project> 121 122