Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>net.yested</groupId>
  8. <artifactId>Yested</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. <properties>
  11. <kotlin.version>0.10.4</kotlin.version>
  12. </properties>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.jetbrains.kotlin</groupId>
  17. <artifactId>kotlin-stdlib</artifactId>
  18. <version>${kotlin.version}</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.jetbrains.kotlin</groupId>
  22. <artifactId>kotlin-js-library</artifactId>
  23. <version>${kotlin.version}</version>
  24. </dependency>
  25. </dependencies>
  26.  
  27. <build>
  28. <sourceDirectory>src/main/kotlin</sourceDirectory>
  29. <testSourceDirectory>src/test/kotlin</testSourceDirectory>
  30. <resources>
  31. <resource>
  32. <directory>src/main/kotlin</directory>
  33. </resource>
  34. </resources>
  35.  
  36. <plugins>
  37. <plugin>
  38. <groupId>org.jetbrains.kotlin</groupId>
  39. <artifactId>kotlin-maven-plugin</artifactId>
  40. <executions>
  41. <execution>
  42. <id>js</id>
  43. <goals>
  44. <goal>js</goal>
  45. </goals>
  46. </execution>
  47. </executions>
  48. </plugin>
  49.  
  50. <plugin>
  51. <artifactId>maven-resources-plugin</artifactId>
  52. </plugin>
  53.  
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-jar-plugin</artifactId>
  57. <configuration>
  58. <forceCreation>true</forceCreation>
  59. <classesDirectory>${project.build.outputDirectory}</classesDirectory>
  60. <includes>
  61. <include>${project.artifactId}.js</include>
  62. <include>**/*.kt</include>
  63. </includes>
  64. <archive>
  65. <forced/>
  66. <manifestEntries>
  67. <Implementation-Version>${build.number}</Implementation-Version>
  68. <Specification-Title>Kotlin JavaScript Lib</Specification-Title>
  69. <Kotlin-JS-Module-Name>${project.artifactId}</Kotlin-JS-Module-Name>
  70. </manifestEntries>
  71. </archive>
  72. </configuration>
  73. </plugin>
  74.  
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-source-plugin</artifactId>
  78. <version>2.1.2</version>
  79. <executions>
  80. <execution>
  81. <id>attach-sources</id>
  82. <phase>verify</phase>
  83. <goals>
  84. <goal>jar-no-fork</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement