"kdoc" - using "ivy-maven-plugin" to inject IDEA/Kotlin dependencies into "compile" scope.
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${kotlin-sdk}/lib/kotlin-compiler.jar</systemPath>
|
<systemPath>${kotlin-sdk}/lib/kotlin-compiler.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
<artifactId>intellij-core</artifactId>
|
<artifactId>intellij-core</artifactId>
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${kotlin-sdk}/lib/intellij-core.jar</systemPath>
|
<systemPath>${kotlin-sdk}/lib/intellij-core.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -55,10 +57,46 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
||||||
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.goldin.plugins</groupId>
|
||||||
|
<artifactId>ivy-maven-plugin</artifactId>
|
||||||
|
<version>${kotlin-maven-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>add-ivy-dependencies</id>
|
||||||
|
<goals>
|
||||||
|
<goal>ivy</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<configuration>
|
||||||
|
<ivyconf>${project.basedir}/src/main/resources/ivyconf.xml</ivyconf>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ivy.org</groupId>
|
||||||
|
<artifactId>bt343</artifactId>
|
||||||
|
<version>latest.lastSuccessful</version>
|
||||||
|
<classifier>core/intellij-core</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ivy.org</groupId>
|
||||||
|
<artifactId>bt344</artifactId>
|
||||||
|
<version>latest.lastSuccessful</version>
|
||||||
|
<classifier>kotlin-runtime</classifier>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<scope>compile</scope>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.goldin.plugins</groupId>
|
<groupId>com.goldin.plugins</groupId>
|
||||||
<artifactId>kotlin-maven-plugin</artifactId>
|
<artifactId>kotlin-maven-plugin</artifactId>
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<ivysettings>
|
||||||
|
<property name='ivy.checksums' value=''/>
|
||||||
|
<caches defaultCache="${user.home}/.ivy/cache"/>
|
||||||
|
<settings defaultResolver="jetbrains-repo"/>
|
||||||
|
<statuses>
|
||||||
|
<status name='integration' integration='true'/>
|
||||||
|
</statuses>
|
||||||
|
<resolvers>
|
||||||
|
<url name='jetbrains-repo' alwaysCheckExactRevision='yes' checkmodified='true'>
|
||||||
|
<ivy pattern='http://teamcity.jetbrains.com/guestAuth/repository/download/[module]/[revision]/teamcity-ivy.xml'/>
|
||||||
|
<artifact pattern='http://teamcity.jetbrains.com/guestAuth/repository/download/[module]/[revision]/[artifact](.[ext])'/>
|
||||||
|
</url>
|
||||||
|
</resolvers>
|
||||||
|
<modules>
|
||||||
|
<module organisation='org' name='bt343' matcher='regexp' resolver='jetbrains-repo'/>
|
||||||
|
<module organisation='org' name='bt344' matcher='regexp' resolver='jetbrains-repo'/>
|
||||||
|
</modules>
|
||||||
|
</ivysettings>
|
||||||
Reference in New Issue
Block a user