aboutsummaryrefslogtreecommitdiff
path: root/maven-plugin/pom.xml
diff options
context:
space:
mode:
authorSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-10 15:10:36 +0300
committerSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-13 17:57:44 +0300
commit549ef194efc7a3eee948eac2da4ac36c2e47a6a1 (patch)
treeb712c97ac6de7706adc689f710b85090c6e7ab20 /maven-plugin/pom.xml
parent526eb3bce36a582a3b4e9af002273b91ed6b1f63 (diff)
downloaddokka-549ef194efc7a3eee948eac2da4ac36c2e47a6a1.tar.gz
dokka-549ef194efc7a3eee948eac2da4ac36c2e47a6a1.tar.bz2
dokka-549ef194efc7a3eee948eac2da4ac36c2e47a6a1.zip
Maven plugin initial implementation
Diffstat (limited to 'maven-plugin/pom.xml')
-rw-r--r--maven-plugin/pom.xml149
1 files changed, 149 insertions, 0 deletions
diff --git a/maven-plugin/pom.xml b/maven-plugin/pom.xml
new file mode 100644
index 00000000..de7a5595
--- /dev/null
+++ b/maven-plugin/pom.xml
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jetbrains.dokka</groupId>
+ <artifactId>dokka-maven-plugin</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+
+ <properties>
+ <maven-plugin-anno.version>1.4.1</maven-plugin-anno.version>
+ <maven.version>3.0.5</maven.version>
+ <plexus.version>3.0.22</plexus.version>
+ <kotlin.version>0.1-SNAPSHOT</kotlin.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <version>${maven.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>${maven.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>${maven.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>${plexus.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-tools</groupId>
+ <artifactId>maven-plugin-annotations</artifactId>
+ <version>3.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jetbrains.dokka</groupId>
+ <artifactId>dokka-fatjar</artifactId>
+ <version>1.0</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>my-local-repo</id>
+ <url>file://${basedir}/../out/repo</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <sourceDirectory>src/main/kotlin</sourceDirectory>
+
+ <plugins>
+ <plugin>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <artifactId>kotlin-maven-plugin</artifactId>
+ <version>${kotlin.version}</version>
+ <executions>
+ <execution>
+ <id>compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>test-compile</id>
+ <phase>test-compile</phase>
+ <goals>
+ <goal>test-compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>3.4</version>
+
+ <executions>
+ <execution>
+ <id>default-descriptor</id>
+ <goals>
+ <goal>descriptor</goal>
+ </goals>
+ <phase>process-classes</phase>
+ </execution>
+ <execution>
+ <id>help-descriptor</id>
+ <goals>
+ <goal>helpmojo</goal>
+ </goals>
+ <phase>process-classes</phase>
+ </execution>
+ </executions>
+
+ <configuration>
+ <goalPrefix>dokka</goalPrefix>
+ </configuration>
+ </plugin>
+
+ <!-- disable default jar building: we use assembly-plugin instead -->
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>default-jar</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.5.5</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project> \ No newline at end of file