Yigit Boyar | 73473d5 | 2016-02-12 13:22:18 -0800 | [diff] [blame^] | 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 | |
| 7 | <modelVersion>4.0.0</modelVersion> |
| 8 | <properties> |
| 9 | <maven.version>3.0.4</maven.version> |
| 10 | </properties> |
| 11 | |
| 12 | <parent> |
| 13 | <groupId>org.jetbrains.kotlin</groupId> |
| 14 | <artifactId>kotlin-project</artifactId> |
| 15 | <version>1.0.0-rc-1036</version> |
| 16 | <relativePath>../../pom.xml</relativePath> |
| 17 | </parent> |
| 18 | |
| 19 | <artifactId>kotlin-gradle-plugin</artifactId> |
| 20 | <packaging>jar</packaging> |
| 21 | |
| 22 | <dependencies> |
| 23 | <dependency> |
| 24 | <groupId>org.jetbrains.kotlin</groupId> |
| 25 | <artifactId>kotlin-stdlib</artifactId> |
| 26 | <version>${project.version}</version> |
| 27 | </dependency> |
| 28 | <dependency> |
| 29 | <groupId>org.jetbrains.kotlin</groupId> |
| 30 | <artifactId>kotlin-android-extensions</artifactId> |
| 31 | <version>${project.version}</version> |
| 32 | </dependency> |
| 33 | <dependency> |
| 34 | <groupId>com.android.tools.build</groupId> |
| 35 | <artifactId>gradle</artifactId> |
| 36 | <version>1.1.0</version> |
| 37 | <scope>provided</scope> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>org.jetbrains.kotlin</groupId> |
| 41 | <artifactId>gradle-api</artifactId> |
| 42 | <version>2.2</version> |
| 43 | <scope>provided</scope> |
| 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>org.jetbrains.kotlin</groupId> |
| 47 | <artifactId>kotlin-gradle-plugin-core</artifactId> |
| 48 | <version>${project.version}</version> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.jetbrains.kotlin</groupId> |
| 52 | <artifactId>kotlin-gradle-plugin-api</artifactId> |
| 53 | <version>${project.version}</version> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.jetbrains.kotlin</groupId> |
| 57 | <artifactId>kotlin-gradle-subplugin-example</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | <scope>test</scope> |
| 60 | </dependency> |
| 61 | </dependencies> |
| 62 | |
| 63 | |
| 64 | <build> |
| 65 | <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> |
| 66 | <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> |
| 67 | |
| 68 | <resources> |
| 69 | <resource> |
| 70 | <directory>${project.basedir}/src/main/resources</directory> |
| 71 | <filtering>true</filtering> |
| 72 | </resource> |
| 73 | </resources> |
| 74 | |
| 75 | <plugins> |
| 76 | <plugin> |
| 77 | <artifactId>kotlin-maven-plugin</artifactId> |
| 78 | <groupId>org.jetbrains.kotlin</groupId> |
| 79 | <version>${project.version}</version> |
| 80 | |
| 81 | <executions> |
| 82 | <execution> |
| 83 | <id>compile</id> |
| 84 | <phase>compile</phase> |
| 85 | <goals> <goal>compile</goal> </goals> |
| 86 | <configuration> |
| 87 | <sourceDirs> |
| 88 | <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| 89 | </sourceDirs> |
| 90 | </configuration> |
| 91 | </execution> |
| 92 | |
| 93 | <execution> |
| 94 | <id>test-compile</id> |
| 95 | <phase>test-compile</phase> |
| 96 | <goals> <goal>test-compile</goal> </goals> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | <plugin> |
| 101 | <!-- Invoker plugin maintains local maven repository in local-repo for gradle integration tests --> |
| 102 | <artifactId>maven-invoker-plugin</artifactId> |
| 103 | <version>1.8</version> |
| 104 | <configuration> |
| 105 | <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
| 106 | <localRepositoryPath>local-repo</localRepositoryPath> |
| 107 | <postBuildHookScript>verify</postBuildHookScript> <!-- no extension required --> |
| 108 | <extraArtifacts> |
| 109 | <extraArtifact>org.jetbrains.kotlin:kotlin-gradle-plugin-core:${project.version}</extraArtifact> |
| 110 | <extraArtifact>org.jetbrains.kotlin:kotlin-js-library:${project.version}</extraArtifact> |
| 111 | </extraArtifacts> |
| 112 | </configuration> |
| 113 | <executions> |
| 114 | <execution> |
| 115 | <id>create_local</id> |
| 116 | <phase>pre-integration-test</phase> |
| 117 | <goals> |
| 118 | <goal>install</goal> |
| 119 | </goals> |
| 120 | </execution> |
| 121 | </executions> |
| 122 | </plugin> |
| 123 | <plugin> |
| 124 | <artifactId>maven-failsafe-plugin</artifactId> |
| 125 | <version>2.6</version> |
| 126 | <executions> |
| 127 | <execution> |
| 128 | <goals> |
| 129 | <goal>integration-test</goal> |
| 130 | <goal>verify</goal> |
| 131 | </goals> |
| 132 | </execution> |
| 133 | </executions> |
| 134 | </plugin> |
| 135 | <plugin> |
| 136 | <groupId>org.codehaus.gmaven</groupId> |
| 137 | <artifactId>gmaven-plugin</artifactId> |
| 138 | <version>1.5</version> |
| 139 | <configuration> |
| 140 | <providerSelection>2.0</providerSelection> |
| 141 | <source/> |
| 142 | </configuration> |
| 143 | <executions> |
| 144 | <execution> |
| 145 | <phase>process-sources</phase> |
| 146 | <goals> <goal>compile</goal></goals> |
| 147 | <configuration> |
| 148 | <sources> |
| 149 | <fileset> |
| 150 | <directory>${project.basedir}/src/main/kotlin</directory> |
| 151 | <includes> |
| 152 | <include>**/*.groovy</include> |
| 153 | </includes> |
| 154 | </fileset> |
| 155 | </sources> |
| 156 | </configuration> |
| 157 | </execution> |
| 158 | </executions> |
| 159 | </plugin> |
| 160 | </plugins> |
| 161 | </build> |
| 162 | |
| 163 | <repositories> |
| 164 | <repository> |
| 165 | <id>jetbrains-utils</id> |
| 166 | <url>http://repository.jetbrains.com/utils</url> |
| 167 | </repository> |
| 168 | <repository> |
| 169 | <id>central</id> |
| 170 | <name>bintray</name> |
| 171 | <url>http://jcenter.bintray.com</url> |
| 172 | </repository> |
| 173 | </repositories> |
| 174 | </project> |