Advertisement
dluciv

Simple Kotlin Maven project

Nov 2nd, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/maven-v4_0_0.xsd">
  3.  
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <groupId>name.dluciv.test1</groupId>
  6.     <artifactId>my-app</artifactId>
  7.     <packaging>jar</packaging>
  8.     <version>0.1.0-SNAPSHOT</version>
  9.     <name>my-app</name>
  10.  
  11.     <properties>
  12.         <kotlin.version>0.1-SNAPSHOT</kotlin.version>
  13.         <junit.version>4.10</junit.version>
  14.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15.     </properties>
  16.  
  17.     <dependencies>
  18.         <dependency>
  19.             <groupId>junit</groupId>
  20.             <artifactId>junit</artifactId>
  21.             <version>${junit.version}</version>
  22.             <scope>test</scope>
  23.         </dependency>
  24.         <dependency>
  25.             <groupId>org.jetbrains.kotlin</groupId>
  26.             <artifactId>kotlin-stdlib</artifactId>
  27.             <version>${kotlin.version}</version>
  28.         </dependency>
  29.     </dependencies>
  30.  
  31.     <build>
  32.         <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
  33.         <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
  34.         <plugins>
  35.             <plugin>
  36.                 <artifactId>kotlin-maven-plugin</artifactId>
  37.                 <groupId>org.jetbrains.kotlin</groupId>
  38.                 <version>${kotlin.version}</version>
  39.                 <executions>
  40.                     <execution>
  41.                         <id>compile</id>
  42.                         <phase>compile</phase>
  43.                         <goals>
  44.                             <goal>compile</goal>
  45.                         </goals>
  46.                     </execution>
  47.                     <execution>
  48.                         <id>test-compile</id>
  49.                         <phase>test-compile</phase>
  50.                         <goals>
  51.                             <goal>test-compile</goal>
  52.                         </goals>
  53.                     </execution>
  54.                 </executions>
  55.             </plugin>
  56.         </plugins>
  57.     </build>
  58.  
  59.     <repositories>
  60.         <repository>
  61.             <id>sonatype.oss.snapshots</id>
  62.             <name>Sonatype OSS Snapshot Repository</name>
  63.             <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  64.             <releases>
  65.                 <enabled>false</enabled>
  66.             </releases>
  67.             <snapshots>
  68.                 <enabled>true</enabled>
  69.             </snapshots>
  70.         </repository>
  71.     </repositories>
  72.  
  73.     <pluginRepositories>
  74.         <pluginRepository>
  75.             <id>sonatype.oss.snapshots</id>
  76.             <name>Sonatype OSS Snapshot Repository</name>
  77.             <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  78.             <releases>
  79.                 <enabled>false</enabled>
  80.             </releases>
  81.             <snapshots>
  82.                 <enabled>true</enabled>
  83.             </snapshots>
  84.         </pluginRepository>
  85.         <pluginRepository>
  86.             <id>onejar-maven-plugin.googlecode.com</id>
  87.             <url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url>
  88.         </pluginRepository>
  89.     </pluginRepositories>
  90. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement