-
Notifications
You must be signed in to change notification settings - Fork 36
/
pom.xml
244 lines (221 loc) · 9.61 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.couchbase.client</groupId>
<artifactId>couchbase-jvm-clients</artifactId>
<version>1.15.0</version><!--REL-->
</parent>
<artifactId>scala-implicits_${scala.compat.version}</artifactId>
<version>1.6.0</version><!--REL-->
<packaging>jar</packaging>
<name>Couchbase Scala SDK Implicits</name>
<description>The official Couchbase Scala SDK (Implicits)</description>
<dependencies>
<!-- External, Required Dependencies -->
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>core-io</artifactId>
<!--Jump through some hoops to get core-io not shared in scala-client-->
<scope>provided</scope>
</dependency>
<!--There's a discussion here https://www.scala-lang.org/old/node/6737.html on whether
scala-library should be provided scope, and the feeling seems to be no, to detect
incompatibilities with the app's version-->
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.compat.library.version}</version>
</dependency>
<dependency>
<groupId>org.scala-lang.modules</groupId>
<artifactId>scala-collection-compat_${scala.compat.version}</artifactId>
<version>${scala.collection-compat.version}</version>
</dependency>
<!--Jsoniter offers very fast conversion of case classes to/from Array[Byte]-->
<dependency>
<groupId>com.github.plokhotnyuk.jsoniter-scala</groupId>
<artifactId>jsoniter-scala-core_${scala.compat.version}</artifactId>
<version>${scala.jsoniter-scala.version}</version>
</dependency>
<dependency>
<groupId>com.github.plokhotnyuk.jsoniter-scala</groupId>
<artifactId>jsoniter-scala-macros_${scala.compat.version}</artifactId>
<version>${scala.jsoniter-scala.version}</version>
<scope>provided</scope>
</dependency>
<!--Needed only for experimenting with replacing Jackson with jsoniter currently, though could expose support-->
<dependency>
<groupId>com.jsoniter</groupId>
<artifactId>jsoniter</artifactId>
<version>${scala.jsoniter.version}</version>
<optional>true</optional>
</dependency>
<!--Dependencies that are optional. If app has them in classpath and uses them, then we support them.-->
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-native_${scala.compat.version}</artifactId>
<version>${scala.json4s.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-jackson_${scala.compat.version}</artifactId>
<version>${scala.json4s.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>jawn-ast_${scala.compat.version}</artifactId>
<version>${scala.jawn.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.lihaoyi</groupId>
<artifactId>upickle_${scala.compat.version}</artifactId>
<version>${scala.upickle.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-generic_${scala.compat.version}</artifactId>
<version>${scala.circe.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-parser_${scala.compat.version}</artifactId>
<version>${scala.circe.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play-json_${scala.compat.version}</artifactId>
<version>${scala.play-json.version}</version>
<optional>true</optional>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>test-utils</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
<configuration>
<args>
<arg>-target:jvm-1.8</arg>
<arg>-deprecation</arg>
<arg>-feature</arg>
</args>
</configuration>
<!--This is a solution for mixed Scala/Java projects
See: https://stackoverflow.com/q/33836905/457612 -->
<executions>
<execution>
<id>scala-compile</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<flattenMode>oss</flattenMode>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<!-- use jar-no-fork instead of jar goal so that
mvn-scalafmt:format don't need to run an extra time -->
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antipathy</groupId>
<!-- use mvn-scalafmt_2.13 for all scala.compat.version -->
<artifactId>mvn-scalafmt_2.13</artifactId>
<version>${mvn-scalafmt.version}</version>
<configuration>
<configLocation>${project.basedir}/../.scalafmt.conf</configLocation>
<!-- there are no tests for this project currently, disabling to remove a warning about no sourcess -->
<skipTestSources>true</skipTestSources>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
<!--Add src/main/java to source-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>