Merge branch 'master' of github.com:JetBrains/kotlin

This commit is contained in:
James Strachan
2012-03-08 08:11:34 +00:00
2 changed files with 77 additions and 17 deletions
+2 -2
View File
@@ -310,7 +310,7 @@
<then>
<!-- Batch tests -->
<if>
<matches string="@{classpath}" pattern="/.jar$"/>
<matches string="@{classpath}" pattern="\.jar$"/>
<then>
<!-- Batch tests from a jar -->
<echo>Running JUnit: classpath = "@{classpath}" (Jar)</echo>
@@ -488,7 +488,7 @@
<hello-tests/>
<longer-examples-tests/>
<module-tests/>
<testlib-tests/>
<!--<testlib-tests/>-->
<compilation-fail-test/>
</target>
</project>
+75 -15
View File
@@ -13,11 +13,16 @@
<properties>
<junit-version>4.9</junit-version>
<kotlin-compiler.version>0.2.3.8</kotlin-compiler.version>
<kotlin-maven-plugin.version>0.2.3.8-beta-7</kotlin-maven-plugin.version>
<kotlin-sdk>${project.basedir}/../../dist/kotlinc</kotlin-sdk>
<pegdown.version>1.1.0</pegdown.version>
<kotlin-maven-plugin.version>0.2.3.8-beta-8</kotlin-maven-plugin.version>
<project-root>${project.basedir}/..</project-root>
<kotlin-sdk>${project-root}/../dist/kotlinc</kotlin-sdk>
<pegdown.version>1.1.0</pegdown.version>
<surefire-version>2.5</surefire-version>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Not to be used manually! Set to "true" by identically named profile, see below. -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<localKotlin>false</localKotlin>
</properties>
<repositories>
@@ -35,15 +40,6 @@
</pluginRepositories>
<dependencies>
<!-- TODO a dirty hack until we have the artifacts in a mvn repo -->
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler</artifactId>
<version>${kotlin-compiler.version}</version>
<scope>system</scope>
<systemPath>${kotlin-sdk}/lib/kotlin-compiler.jar</systemPath>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -52,6 +48,7 @@
</dependency>
</dependencies>
<modules>
<module>stdlib</module>
<module>kunit</module>
@@ -77,13 +74,14 @@
</goals>
<phase>initialize</phase>
<configuration>
<runIf>{{ ! Boolean.valueOf( localKotlin ) }}</runIf>
<ivyconf>${project-root}/etc/ivyconf.xml</ivyconf>
<dependencies>
<dependency>
<groupId>ivy.org</groupId>
<artifactId>bt343</artifactId>
<artifactId>bt344</artifactId>
<version>latest.lastSuccessful</version>
<classifier>core/intellij-core</classifier>
<classifier>kotlin-compiler</classifier>
</dependency>
<dependency>
<groupId>ivy.org</groupId>
@@ -91,6 +89,12 @@
<version>latest.lastSuccessful</version>
<classifier>kotlin-runtime</classifier>
</dependency>
<dependency>
<groupId>ivy.org</groupId>
<artifactId>bt343</artifactId>
<version>latest.lastSuccessful</version>
<classifier>core/intellij-core</classifier>
</dependency>
</dependencies>
<scope>compile</scope>
<verbose>true</verbose>
@@ -108,7 +112,7 @@
<id>compile-kotlin-sources</id>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
<!--<goal>testCompile</goal>-->
</goals>
</execution>
</executions>
@@ -135,4 +139,60 @@
</plugins>
</build>
<profiles>
<profile>
<id>localKotlin</id>
<properties>
<localKotlin>true</localKotlin>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.goldin.plugins</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin-maven-plugin.version}</version>
<configuration>
<kotlinJars>
<jar>${kotlin-sdk}/lib/kotlin-build-tools.jar</jar>
<jar>${kotlin-sdk}/lib/kotlin-compiler.jar</jar>
<jar>${kotlin-sdk}/lib/kotlin-runtime.jar</jar>
<jar>${kotlin-sdk}/lib/intellij-core.jar</jar>
<jar>${kotlin-sdk}/lib/picocontainer.jar</jar>
<jar>${kotlin-sdk}/lib/trove4j.jar</jar>
</kotlinJars>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler</artifactId>
<version>${kotlin-compiler.version}</version>
<scope>system</scope>
<systemPath>${kotlin-sdk}/lib/kotlin-compiler.jar</systemPath>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-runtime</artifactId>
<version>${kotlin-compiler.version}</version>
<scope>system</scope>
<systemPath>${kotlin-sdk}/lib/kotlin-runtime.jar</systemPath>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>intellij-core</artifactId>
<version>${kotlin-compiler.version}</version>
<scope>system</scope>
<systemPath>${kotlin-sdk}/lib/intellij-core.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
</project>