pom.xml 13.9 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 35 36
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <nodejs.npm.cmd>npm</nodejs.npm.cmd>
        <nodejs.version>v12.16.2</nodejs.version>
        <javac.target>11</javac.target>
    </properties>
37

V
Vlad Ilyushchenko 已提交
38
    <version>4.3.0-SNAPSHOT</version>
V
Vlad Ilyushchenko 已提交
39
    <groupId>org.questdb</groupId>
40
    <artifactId>core</artifactId>
V
Vlad 已提交
41
    <packaging>jar</packaging>
42

V
Vlad 已提交
43

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

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

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

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
69
                <version>3.8.1</version>
V
Vlad 已提交
70
                <configuration>
71 72 73 74
                    <compilerArgs>
                        <arg>--add-exports</arg>
                        <arg>java.base/jdk.internal.math=io.questdb</arg>
                    </compilerArgs>
75
                    <fork>true</fork>
76 77
                    <source>${javac.target}</source>
                    <target>${javac.target}</target>
V
Vlad 已提交
78 79
                </configuration>
            </plugin>
80
            <plugin>
81 82 83
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
84 85 86
                <configuration>
                    <longModulepath>false</longModulepath>
                </configuration>
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
                <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>
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
                    <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>
142
                </executions>
143
            </plugin>
V
Vlad 已提交
144 145 146
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
147
                <version>3.0.1</version>
V
Vlad 已提交
148 149 150 151 152 153 154
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
V
Vlad Ilyushchenko 已提交
155 156 157
                <configuration>
                    <archive>
                        <manifest>
158
                            <mainClass>io.questdb.ServerMain</mainClass>
V
Vlad Ilyushchenko 已提交
159 160 161 162
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
V
Vlad 已提交
163
            </plugin>
164
            <plugin>
V
Vlad Ilyushchenko 已提交
165
                <groupId>org.apache.maven.plugins</groupId>
166
                <artifactId>maven-assembly-plugin</artifactId>
167
                <version>3.0.0</version>
168
                <configuration>
169
                    <tarLongFileMode>posix</tarLongFileMode>
170 171 172
                </configuration>
                <executions>
                    <execution>
173
                        <id>create-binary</id>
174 175 176 177
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
178 179
                        <configuration>
                            <descriptors>
180
                                <descriptor>src/main/assembly/binaries.xml</descriptor>
181
                            </descriptors>
182
                            <finalName>questdb-${project.version}</finalName>
183 184 185
                        </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>src/main/assembly/runtime.xml</descriptor>
194
                            </descriptors>
V
Vlad Ilyushchenko 已提交
195
                            <finalName>questdb-${project.version}</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>
V
Vlad 已提交
208 209 210
        </plugins>
    </build>

V
Vlad 已提交
211 212 213 214 215 216 217 218 219 220 221 222 223 224
    <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 已提交
225
                        <version>3.0.1</version>
V
Vlad 已提交
226 227 228 229 230 231 232 233 234 235 236 237
                        <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>
238
                        <version>2.10.4</version>
V
Vlad 已提交
239 240 241 242 243 244 245 246 247 248 249 250
                        <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 已提交
251
                        <version>1.6</version>
V
Vlad 已提交
252 253 254 255 256 257 258 259 260
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
261
                        <configuration>
V
Vlad Ilyushchenko 已提交
262
                            <executable>gpg</executable>
263
                        </configuration>
V
Vlad 已提交
264
                    </plugin>
265 266 267 268 269 270 271 272 273 274 275 276
                    <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 已提交
277 278
                </plugins>
            </build>
279 280
        </profile>
        <profile>
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 310
            <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>
311
        </profile>
312 313 314 315 316 317 318 319 320 321 322 323 324
        <profile>
            <id>platform-windows</id>
            <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>
            </properties>
V
Vlad 已提交
325 326 327
        </profile>
    </profiles>

V
Vlad 已提交
328 329 330 331 332
    <dependencies>
        <!-- test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
333
            <version>4.12</version>
V
Vlad 已提交
334 335 336
            <scope>test</scope>
        </dependency>

337
        <dependency>
V
Vlad Ilyushchenko 已提交
338
            <groupId>org.jetbrains</groupId>
339
            <artifactId>annotations</artifactId>
V
Vlad Ilyushchenko 已提交
340
            <version>17.0.0</version>
341
            <scope>provided</scope>
342 343
        </dependency>

344 345 346
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
347
            <version>42.2.12</version>
348 349
            <scope>test</scope>
        </dependency>
V
Vlad 已提交
350 351
    </dependencies>
</project>