pom.xml 16.5 KB
Newer Older
1
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 3 4 5 6
  ~     ___                  _   ____  ____
  ~    / _ \ _   _  ___  ___| |_|  _ \| __ )
  ~   | | | | | | |/ _ \/ __| __| | | |  _ \
  ~   | |_| | |_| |  __/\__ \ |_| |_| | |_) |
  ~    \__\_\\__,_|\___||___/\__|____/|____/
V
Vlad 已提交
7
  ~
8 9
  ~  Copyright (c) 2014-2019 Appsicle
  ~  Copyright (c) 2019-2020 QuestDB
V
Vlad 已提交
10
  ~
11 12 13
  ~  Licensed under the Apache License, Version 2.0 (the "License");
  ~  you may not use this file except in compliance with the License.
  ~  You may obtain a copy of the License at
V
Vlad 已提交
14
  ~
15
  ~  http://www.apache.org/licenses/LICENSE-2.0
16
  ~
17 18 19 20 21
  ~  Unless required by applicable law or agreed to in writing, software
  ~  distributed under the License is distributed on an "AS IS" BASIS,
  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~  See the License for the specific language governing permissions and
  ~  limitations under the License.
22
  ~
23
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
V
Vlad 已提交
24 25 26 27

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
V
Vlad Ilyushchenko 已提交
28
    <name>QuestDB Core</name>
29
    <description>QuestDB is High Performance Time Series Database</description>
V
Vlad 已提交
30

31 32 33 34
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <nodejs.npm.cmd>npm</nodejs.npm.cmd>
        <nodejs.version>v12.16.2</nodejs.version>
35
        <runtime.assembly>none</runtime.assembly>
36 37
        <javac.target>11</javac.target>
    </properties>
38

V
Vlad Ilyushchenko 已提交
39
    <version>5.0.0</version>
V
Vlad Ilyushchenko 已提交
40
    <groupId>org.questdb</groupId>
41
    <artifactId>core</artifactId>
V
Vlad 已提交
42
    <packaging>jar</packaging>
43

V
Vlad 已提交
44

45
    <url>https://www.questdb.io/</url>
V
Vlad 已提交
46 47
    <licenses>
        <license>
48 49
            <name>Apache 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
V
Vlad 已提交
50 51 52 53 54 55
            <distribution>repo</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
56 57
            <name>QuestDB Team</name>
            <email>hello@questdb.io</email>
V
Vlad 已提交
58 59 60 61
        </developer>
    </developers>

    <scm>
62
        <url>scm:git:https://github.com/questdb/questdb.git</url>
V
Vlad 已提交
63 64 65 66 67 68 69
    </scm>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
70
                <version>3.8.1</version>
V
Vlad 已提交
71
                <configuration>
72 73 74 75
                    <compilerArgs>
                        <arg>--add-exports</arg>
                        <arg>java.base/jdk.internal.math=io.questdb</arg>
                    </compilerArgs>
76
                    <fork>true</fork>
77 78
                    <source>${javac.target}</source>
                    <target>${javac.target}</target>
V
Vlad 已提交
79 80
                </configuration>
            </plugin>
81
            <plugin>
82 83 84
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
85 86 87
                <configuration>
                    <longModulepath>false</longModulepath>
                </configuration>
88 89 90 91 92 93
                <executions>
                    <execution>
                        <id>npm-install</id>
                        <goals>
                            <goal>exec</goal>
                        </goals>
94
                        <phase>prepare-package</phase>
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
                        <configuration>
                            <executable>${nodejs.npm.cmd}</executable>
                            <arguments>
                                <argument>install</argument>
                                <argument>--no-fund</argument>
                                <argument>--scripts-prepend-node-path=auto</argument>
                            </arguments>
                            <workingDirectory>../ui</workingDirectory>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm-run-build</id>
                        <goals>
                            <goal>exec</goal>
                        </goals>
110
                        <phase>prepare-package</phase>
111 112 113 114 115 116 117 118 119 120
                        <configuration>
                            <executable>${nodejs.npm.cmd}</executable>
                            <arguments>
                                <argument>run</argument>
                                <argument>build</argument>
                                <argument>--scripts-prepend-node-path=auto</argument>
                            </arguments>
                            <workingDirectory>../ui</workingDirectory>
                        </configuration>
                    </execution>
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
                    <execution>
                        <id>jlink</id>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <executable>${java.home}/bin/jlink</executable>
                            <arguments>
                                <argument>--module-path</argument>
                                <argument>${build.outputDirectory}</argument>
                                <argument>--add-modules</argument>
                                <argument>io.questdb</argument>
                                <argument>--output</argument>
                                <argument>${build.directory}/runtime</argument>
                                <argument>--no-header-files</argument>
                                <argument>--no-man-pages</argument>
                                <argument>--compress=2</argument>
                            </arguments>
                            <workingDirectory>../core</workingDirectory>
                        </configuration>
                    </execution>
143
                </executions>
144
            </plugin>
V
Vlad 已提交
145 146 147
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
148
                <version>3.0.1</version>
V
Vlad 已提交
149 150 151 152 153 154 155
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
V
Vlad Ilyushchenko 已提交
156 157 158
                <configuration>
                    <archive>
                        <manifest>
159
                            <mainClass>io.questdb.ServerMain</mainClass>
V
Vlad Ilyushchenko 已提交
160 161 162 163
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
V
Vlad 已提交
164
            </plugin>
165
            <plugin>
V
Vlad Ilyushchenko 已提交
166
                <groupId>org.apache.maven.plugins</groupId>
167
                <artifactId>maven-assembly-plugin</artifactId>
168
                <version>3.0.0</version>
169
                <configuration>
170
                    <tarLongFileMode>posix</tarLongFileMode>
171 172 173
                </configuration>
                <executions>
                    <execution>
174
                        <id>create-binary</id>
175 176 177 178
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
179 180
                        <configuration>
                            <descriptors>
181
                                <descriptor>src/main/assembly/binaries.xml</descriptor>
182 183 184 185
                            </descriptors>
                        </configuration>
                    </execution>
                    <execution>
186
                        <id>create-runtime</id>
187 188 189 190 191 192
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>
193
                                <descriptor>${runtime.assembly}</descriptor>
194
                            </descriptors>
195
                            <finalName>questdb</finalName>
196
                        </configuration>
197 198 199
                    </execution>
                </executions>
            </plugin>
200 201 202
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
203
                <version>2.19</version>
204
                <configuration>
205
                    <argLine>-Xmx512m --add-exports java.base/jdk.internal.math=ALL-UNNAMED</argLine>
206 207
                </configuration>
            </plugin>
208 209 210 211 212 213 214 215 216 217 218 219 220
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>3.0.0-M3</version>
                <executions>
                    <execution>
                        <id>enforce-versions</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
221
                                    <version>3.0.0</version>
222 223 224 225 226 227 228 229 230
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <version>11</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
V
Vlad 已提交
231 232 233
        </plugins>
    </build>

V
Vlad 已提交
234 235 236 237 238 239 240 241 242 243 244 245 246 247
    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>release</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
248
                        <version>3.0.1</version>
V
Vlad 已提交
249 250 251 252 253 254 255 256 257 258 259 260
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
261
                        <version>2.10.4</version>
V
Vlad 已提交
262 263 264 265 266 267 268 269 270 271 272 273
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
274
                        <version>1.6</version>
V
Vlad 已提交
275 276 277 278 279 280 281 282 283
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
284
                        <configuration>
V
Vlad Ilyushchenko 已提交
285
                            <executable>gpg</executable>
286
                        </configuration>
V
Vlad 已提交
287
                    </plugin>
288 289 290 291 292 293 294 295 296 297 298 299
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <version>2.7</version>
                        <configuration>
                            <formats>
                                <format>html</format>
                                <format>xml</format>
                            </formats>
                            <check/>
                        </configuration>
                    </plugin>
V
Vlad 已提交
300 301
                </plugins>
            </build>
302 303
        </profile>
        <profile>
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
            <id>install-local-nodejs</id>
            <properties>
                <nodejs.npm.cmd>${project.basedir}/node/npm</nodejs.npm.cmd>
            </properties>
            <activation>
                <property>
                    <name>profile.install-local-nodejs</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.eirslett</groupId>
                        <artifactId>frontend-maven-plugin</artifactId>
                        <version>1.9.1</version>
                        <executions>
                            <execution>
                                <id>install node and npm</id>
                                <goals>
                                    <goal>install-node-and-npm</goal>
                                </goals>
                                <phase>initialize</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <nodeVersion>${nodejs.version}</nodeVersion>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
334
        </profile>
335
        <profile>
336
            <id>platform-windows-amd64-node</id>
337 338 339 340 341 342 343 344 345 346
            <activation>
                <os>
                    <family>windows</family>
                </os>
                <property>
                    <name>profile.install-local-nodejs</name>
                </property>
            </activation>
            <properties>
                <nodejs.npm.cmd>${project.basedir}/node/npm.cmd</nodejs.npm.cmd>
347 348 349 350 351 352 353 354 355 356 357
            </properties>
        </profile>
        <profile>
            <id>platform-windows-amd64</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
                <runtime.name>rt-windows-amd64</runtime.name>
358 359 360 361 362 363 364 365 366 367 368 369
                <runtime.assembly>src/main/assembly/windows-runtime.xml</runtime.assembly>
            </properties>
        </profile>
        <profile>
            <id>platform-linux-amd64</id>
            <activation>
                <os>
                    <family>unix</family>
                    <arch>amd64</arch>
                </os>
            </activation>
            <properties>
370
                <runtime.name>rt-linux-amd64</runtime.name>
371 372 373 374 375 376 377 378 379 380 381 382
                <runtime.assembly>src/main/assembly/linux-runtime.xml</runtime.assembly>
            </properties>
        </profile>
        <profile>
            <id>platform-linux-aarch64</id>
            <activation>
                <os>
                    <family>unix</family>
                    <arch>aarch64</arch>
                </os>
            </activation>
            <properties>
383
                <runtime.name>rt-linux-aarch64</runtime.name>
384 385 386 387 388 389 390 391 392 393 394
                <runtime.assembly>src/main/assembly/linux-runtime.xml</runtime.assembly>
            </properties>
        </profile>
        <profile>
            <id>platform-osx-amd64</id>
            <activation>
                <os>
                    <family>Mac</family>
                </os>
            </activation>
            <properties>
395
                <runtime.name>rt-osx-amd64</runtime.name>
396
                <runtime.assembly>src/main/assembly/linux-runtime.xml</runtime.assembly>
397
            </properties>
V
Vlad 已提交
398 399 400
        </profile>
    </profiles>

V
Vlad 已提交
401 402 403 404 405
    <dependencies>
        <!-- test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
406
            <version>4.12</version>
V
Vlad 已提交
407 408 409
            <scope>test</scope>
        </dependency>

410
        <dependency>
V
Vlad Ilyushchenko 已提交
411
            <groupId>org.jetbrains</groupId>
412
            <artifactId>annotations</artifactId>
V
Vlad Ilyushchenko 已提交
413
            <version>17.0.0</version>
414
            <scope>provided</scope>
415 416
        </dependency>

417 418 419
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
420
            <version>42.2.12</version>
421 422
            <scope>test</scope>
        </dependency>
V
Vlad 已提交
423 424
    </dependencies>
</project>