-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
196 lines (180 loc) · 6.14 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scijava</groupId>
<artifactId>pom-scijava</artifactId>
<version>37.0.0</version>
<relativePath />
</parent>
<artifactId>scripting-kotlin</artifactId>
<version>0.2.2-SNAPSHOT</version>
<name>SciJava Scripting: Kotlin</name>
<description>JSR-223-compliant Kotlin scripting language plugin.</description>
<url>https://github.com/scijava/scripting-kotlin</url>
<inceptionYear>2016</inceptionYear>
<organization>
<name>SciJava</name>
<url>https://scijava.org/</url>
</organization>
<licenses>
<license>
<name>Simplified BSD License</name>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ctrueden</id>
<name>Curtis Rueden</name>
<url>https://imagej.net/User:Rueden</url>
<roles>
<role>founder</role>
<role>lead</role>
<role>developer</role>
<role>debugger</role>
<role>reviewer</role>
<role>support</role>
<role>maintainer</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>Philipp Hanslovsky</name>
<url>https://imagej.net/User:Hanslovsky</url>
<properties><id>hanslovsky</id></properties>
</contributor>
</contributors>
<mailingLists>
<mailingList>
<name>SciJava</name>
<subscribe>https://groups.google.com/group/scijava</subscribe>
<unsubscribe>https://groups.google.com/group/scijava</unsubscribe>
<post>scijava.com</post>
<archive>https://groups.google.com/group/scijava</archive>
</mailingList>
</mailingLists>
<scm>
<connection>scm:git:https://github.com/scijava/scripting-kotlin</connection>
<developerConnection>scm:git:git@github.com:scijava/scripting-kotlin</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/scijava/scripting-kotlin</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/scijava/scripting-kotlin/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/scijava/scripting-kotlin/actions</url>
</ciManagement>
<properties>
<package-name>org.scijava.plugins.scripting.kotlin</package-name>
<license.licenseName>bsd_2</license.licenseName>
<license.copyrightOwners>Board of Regents of the University of
Wisconsin-Madison.</license.copyrightOwners>
<!-- NB: Deploy releases to the SciJava Maven repository. -->
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
<!-- NB: Work around duplicate classes issue in Kotlin dependencies-->
<allowedDuplicateClasses>org/jetbrains/kotlin/daemon/common/*,kotlinx/coroutines/**</allowedDuplicateClasses>
<!-- NB: We have to disable manifest-only jar ot be able to run tests on command line. -->
<!-- NB: Tests work in IntelliJ but manifest-only jar seems to mess with it on command line. -->
<!-- NB: cf: mvn surefire:help -Ddetail=true -->
<surefire.useManifestOnlyJar>false</surefire.useManifestOnlyJar>
<kotlin-compiler-embeddable.optional>false</kotlin-compiler-embeddable.optional>
<!-- NB: kotlin requires 1.X for versions up to 8. This can be removed when scijava.jvm.version goes to 9 -->
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget>
<kotlin.version>1.9.23</kotlin.version>
</properties>
<repositories>
<repository>
<id>scijava.public</id>
<url>https://maven.scijava.org/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<!-- SciJava dependencies -->
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-common</artifactId>
</dependency>
<!-- Kotlin dependencies -->
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler-embeddable</artifactId>
<optional>${kotlin-compiler-embeddable.optional}</optional>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-scripting-jsr223</artifactId>
<version>${kotlin.version}</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-common</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<!-- The JetBrains trove4j fork clashes with the gnu trove4j jar in Fiji.
We need to shade and relocate in this case. -->
<id>shade-trove4j-fork</id>
<activation>
<property>
<name>scijava.app.directory</name>
</property>
</activation>
<properties>
<kotlin-compiler-embeddable.optional>true</kotlin-compiler-embeddable.optional>
<scijava.ignoreOptionalDependencies>true</scijava.ignoreOptionalDependencies>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>org.jetbrains.intellij.deps:trove4j</include>
<include>org.jetbrains.kotlin:kotlin-compiler-embeddable</include>
<include>org.jetbrains.kotlin:kotlin-script-runtime</include>
<include>org.jetbrains.kotlin:kotlin-reflect</include>
<include>org.jetbrains.kotlin:kotlin-daemon-embeddable</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>gnu.trove</pattern>
<shadedPattern>gnu.trove.shaded</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>