publish compiler with attach-artifact in maven

This commit is contained in:
Leonid Shalupov
2012-06-04 23:47:25 +04:00
parent 2fe8ec7443
commit b243c5765d
3 changed files with 179 additions and 196 deletions
+118 -118
View File
@@ -1,118 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project-root>../../..</project-root>
<asm.version>3.3.1</asm.version>
<dart.name>dart-r3300</dart.name>
<guava.version>11.0.2</guava.version>
<junit-version>4.10</junit-version>
<kotlin-maven-plugin.version>0.2.3.8</kotlin-maven-plugin.version>
<kotlin-dist>${project-root}/dist</kotlin-dist>
<kotlin-js-lib-srcdir>${project-root}/js/js.libraries/src</kotlin-js-lib-srcdir>
<kotlin-sdk>${kotlin-dist}/kotlinc</kotlin-sdk>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
<pegdown.version>1.1.0</pegdown.version>
<surefire-version>2.5</surefire-version>
<exec-maven-plugin.version>1.2.1</exec-maven-plugin.version>
</properties>
<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>jetbrains-kotlin</id>
<name>jetbrains-kotlin</name>
<url>http://repository.jetbrains.com/kotlin</url>
<layout>default</layout>
</repository>
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>jetbrains-kotlin</id>
<name>jetbrains-kotlin</name>
<url>http://repository.jetbrains.com/kotlin</url>
<layout>default</layout>
</snapshotRepository>
</distributionManagement>
<modules>
<module>tools/kotlin-install</module>
<module>tools/runtime</module>
<module>tools/kotlin-maven-plugin</module>
<module>tools/kotlin-js-library</module>
<module>tools/kdoc</module>
<module>tools/kdoc-maven-plugin</module>
<module>stdlib</module>
<module>kunit</module>
<module>kotlin-jdbc</module>
<module>kotlin-swing</module>
<module>docs/apidoc</module>
<module>docs/website</module>
<module>examples/kotlin-java-example</module>
<module>examples/js-example</module>
<module>examples/browser-example</module>
</modules>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-version}</version>
<configuration>
<forkMode>once</forkMode>
<useSystemClassLoader>false</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
<failIfNoTests>false</failIfNoTests>
<includes>
<include>**/*Test.*</include>
</includes>
<excludes>
</excludes>
<systemProperties>
<project.version>${project.version}</project.version>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project-root>../../..</project-root>
<asm.version>3.3.1</asm.version>
<dart.name>dart-r3300</dart.name>
<guava.version>11.0.2</guava.version>
<junit-version>4.10</junit-version>
<kotlin-maven-plugin.version>0.2.3.8</kotlin-maven-plugin.version>
<kotlin-dist>${project-root}/dist</kotlin-dist>
<kotlin-js-lib-srcdir>${project-root}/js/js.libraries/src</kotlin-js-lib-srcdir>
<kotlin-sdk>${kotlin-dist}/kotlinc</kotlin-sdk>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
<pegdown.version>1.1.0</pegdown.version>
<surefire-version>2.5</surefire-version>
<exec-maven-plugin.version>1.2.1</exec-maven-plugin.version>
</properties>
<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>jetbrains-kotlin</id>
<name>jetbrains-kotlin</name>
<url>http://repository.jetbrains.com/kotlin</url>
<layout>default</layout>
</repository>
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>jetbrains-kotlin</id>
<name>jetbrains-kotlin</name>
<url>http://repository.jetbrains.com/kotlin</url>
<layout>default</layout>
</snapshotRepository>
</distributionManagement>
<modules>
<module>tools/kotlin-compiler</module>
<module>tools/runtime</module>
<module>tools/kotlin-maven-plugin</module>
<module>tools/kotlin-js-library</module>
<module>tools/kdoc</module>
<module>tools/kdoc-maven-plugin</module>
<module>stdlib</module>
<module>kunit</module>
<module>kotlin-jdbc</module>
<module>kotlin-swing</module>
<module>docs/apidoc</module>
<module>docs/website</module>
<module>examples/kotlin-java-example</module>
<module>examples/js-example</module>
<module>examples/browser-example</module>
</modules>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-version}</version>
<configuration>
<forkMode>once</forkMode>
<useSystemClassLoader>false</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
<failIfNoTests>false</failIfNoTests>
<includes>
<include>**/*Test.*</include>
</includes>
<excludes>
</excludes>
<systemProperties>
<project.version>${project.version}</project.version>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>
+61
View File
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<properties>
<maven-plugin-anno.version>1.4.1</maven-plugin-anno.version>
<maven.version>3.0.4</maven.version>
</properties>
<parent>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>kotlin-compiler</artifactId>
<packaging>pom</packaging>
<description>the Kotlin compiler</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>compile</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${kotlin-sdk}/lib/kotlin-compiler.jar</file>
<type>jar</type>
</artifact>
<artifact>
<file>${kotlin-dist}/kotlin-compiler-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
<artifact>
<file>${kotlin-dist}/kotlin-compiler-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
-78
View File
@@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<properties>
<maven-plugin-anno.version>1.4.1</maven-plugin-anno.version>
<maven.version>3.0.4</maven.version>
</properties>
<parent>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>kotlin-install</artifactId>
<packaging>pom</packaging>
<description>Installs and deploys the Kotlin compiler</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<file>${kotlin-sdk}/lib/kotlin-compiler.jar</file>
<sources>${kotlin-dist}/kotlin-compiler-sources.jar</sources>
<javadoc>${kotlin-dist}/kotlin-compiler-javadoc.jar</javadoc>
<createChecksum>true</createChecksum>
<generatePom>true</generatePom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<file>${kotlin-sdk}/lib/kotlin-compiler.jar</file>
<sources>${kotlin-dist}/kotlin-compiler-sources.jar</sources>
<javadoc>${kotlin-dist}/kotlin-compiler-javadoc.jar</javadoc>
<generatePom>true</generatePom>
<repositoryId>jetbrains-kotlin</repositoryId>
<url>http://repository.jetbrains.com/kotlin</url>
<uniqueVersion>false</uniqueVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>