pom.xml 15.3 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>4.3.0-SNAPSHOT</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 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
                <executions>
                    <execution>
                        <id>npm-install</id>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <phase>generate-sources</phase>
                        <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>
                        <phase>generate-sources</phase>
                        <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 195
                            </descriptors>
                        </configuration>
196 197 198
                    </execution>
                </executions>
            </plugin>
199 200 201
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
202
                <version>2.19</version>
203
                <configuration>
204
                    <argLine>-Xmx512m --add-exports java.base/jdk.internal.math=ALL-UNNAMED</argLine>
205 206
                </configuration>
            </plugin>
V
Vlad 已提交
207 208 209
        </plugins>
    </build>

V
Vlad 已提交
210 211 212 213 214 215 216 217 218 219 220 221 222 223
    <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 已提交
224
                        <version>3.0.1</version>
V
Vlad 已提交
225 226 227 228 229 230 231 232 233 234 235 236
                        <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>
237
                        <version>2.10.4</version>
V
Vlad 已提交
238 239 240 241 242 243 244 245 246 247 248 249
                        <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 已提交
250
                        <version>1.6</version>
V
Vlad 已提交
251 252 253 254 255 256 257 258 259
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
260
                        <configuration>
V
Vlad Ilyushchenko 已提交
261
                            <executable>gpg</executable>
262
                        </configuration>
V
Vlad 已提交
263
                    </plugin>
264 265 266 267 268 269 270 271 272 273 274 275
                    <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 已提交
276 277
                </plugins>
            </build>
278 279
        </profile>
        <profile>
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
            <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>
310
        </profile>
311
        <profile>
312
            <id>platform-windows-amd64</id>
313 314 315 316 317 318 319 320 321 322
            <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>
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
                <runtime.name>questdb-${version}-windows-amd64</runtime.name>
                <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>
                <runtime.name>questdb-${version}-linux-amd64</runtime.name>
                <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>
                <runtime.name>questdb-${version}-linux-aarch64</runtime.name>
                <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>
                <runtime.name>questdb-${version}-osx-amd64</runtime.name>
                <runtime.assembly>src/main/assembly/linux-runtime.xml</runtime.assembly>
363
            </properties>
V
Vlad 已提交
364 365 366
        </profile>
    </profiles>

V
Vlad 已提交
367 368 369 370 371
    <dependencies>
        <!-- test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
372
            <version>4.12</version>
V
Vlad 已提交
373 374 375
            <scope>test</scope>
        </dependency>

376
        <dependency>
V
Vlad Ilyushchenko 已提交
377
            <groupId>org.jetbrains</groupId>
378
            <artifactId>annotations</artifactId>
V
Vlad Ilyushchenko 已提交
379
            <version>17.0.0</version>
380
            <scope>provided</scope>
381 382
        </dependency>

383 384 385
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
386
            <version>42.2.12</version>
387 388
            <scope>test</scope>
        </dependency>
V
Vlad 已提交
389 390
    </dependencies>
</project>