Skip to content

Commit d1984f1

Browse files
authored
build: 1.0.0 (#3)
1 parent 9bcd0cb commit d1984f1

8 files changed

Lines changed: 58 additions & 25 deletions

File tree

ci/run_tests_pipeline.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,36 @@ variables:
1111
QUESTDB_ILP_TCP_AUTH_ENABLE: false
1212

1313
stages:
14+
- stage: Validate
15+
displayName: "Validation"
16+
jobs:
17+
- job: Javadoc
18+
displayName: "Javadoc"
19+
pool:
20+
name: "Azure Pipelines"
21+
vmImage: "ubuntu-latest"
22+
steps:
23+
- checkout: self
24+
fetchDepth: 0
25+
lfs: false
26+
submodules: false
27+
- bash: |
28+
git fetch origin $(System.PullRequest.SourceBranch)
29+
git checkout FETCH_HEAD
30+
displayName: "Checkout PR source branch"
31+
condition: eq(variables['Build.Reason'], 'PullRequest')
32+
- task: JavaToolInstaller@0
33+
displayName: "Install Java 11"
34+
inputs:
35+
versionSpec: "11"
36+
jdkArchitectureOption: "x64"
37+
jdkSourceOption: "PreInstalled"
38+
- bash: mvn -f core/pom.xml javadoc:javadoc -Pjavadoc --batch-mode
39+
displayName: "Verify Javadoc"
40+
1441
- stage: BuildAndTest
1542
displayName: "Building and testing"
43+
dependsOn: Validate
1644
jobs:
1745
- job: RunOn
1846
displayName: "on"

core/pom.xml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
~
2323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
2424

25-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
26-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25+
<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">
2726
<modelVersion>4.0.0</modelVersion>
2827
<name>QuestDB</name>
2928
<description>QuestDB is high performance SQL time series database</description>
@@ -39,7 +38,7 @@
3938
<test.include>%regex[.*[^o].class]</test.include><!-- exclude module-info.class-->
4039
</properties>
4140

42-
<version>1.0.0-SNAPSHOT</version>
41+
<version>1.0.1-SNAPSHOT</version>
4342
<groupId>org.questdb</groupId>
4443
<artifactId>client</artifactId>
4544
<packaging>jar</packaging>
@@ -63,7 +62,7 @@
6362
<scm>
6463
<url>scm:git:https://github.com/questdb/java-questdb-client.git</url>
6564
<connection>scm:git:https://github.com/questdb/java-questdb-client.git</connection>
66-
<tag>1.0.0</tag>
65+
<tag>HEAD</tag>
6766
</scm>
6867

6968

@@ -166,7 +165,7 @@
166165
<artifactId>maven-surefire-plugin</artifactId>
167166
<version>3.5.3</version>
168167
<configuration>
169-
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
168+
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
170169
<argLine>-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider</argLine>
171170
<useModulePath>true</useModulePath>
172171
<includes>
@@ -198,12 +197,16 @@
198197
</execution>
199198
</executions>
200199
<configuration>
200+
<doclint>none</doclint>
201+
<source>11</source>
202+
<detectJavaApiLink>false</detectJavaApiLink>
201203
<additionalJOptions>
202204
<additionalJOption>${compilerArg1}</additionalJOption>
203205
<additionalJOption>${compilerArg2}</additionalJOption>
204206
</additionalJOptions>
205207
<sourceFileExcludes>
206208
<sourceFileExclude>${excludePattern1}</sourceFileExclude>
209+
<sourceFileExclude>module-info.java</sourceFileExclude>
207210
</sourceFileExcludes>
208211
</configuration>
209212
</plugin>
@@ -292,12 +295,16 @@
292295
</execution>
293296
</executions>
294297
<configuration>
298+
<doclint>none</doclint>
299+
<source>11</source>
300+
<detectJavaApiLink>false</detectJavaApiLink>
295301
<additionalJOptions>
296302
<additionalJOption>${compilerArg1}</additionalJOption>
297303
<additionalJOption>${compilerArg2}</additionalJOption>
298304
</additionalJOptions>
299305
<sourceFileExcludes>
300306
<sourceFileExclude>${excludePattern1}</sourceFileExclude>
307+
<sourceFileExclude>module-info.java</sourceFileExclude>
301308
</sourceFileExcludes>
302309
</configuration>
303310
</plugin>

core/src/main/java/io/questdb/client/ParanoiaState.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
public class ParanoiaState {
2929
/**
3030
* <pre>
31-
* BASIC -> validates UTF-8 in log records (throws a LogError if invalid),
31+
* BASIC -&gt; validates UTF-8 in log records (throws a LogError if invalid),
3232
* throws a LogError on abandoned log records (missing .$() at the end of log statement),
3333
* detects closed stdout in LogConsoleWriter.
3434
* This introduces a low overhead to logging.
35-
* AGGRESSIVE -> BASIC + holds recent history of log lines to help diagnose closed stdout,
35+
* AGGRESSIVE -&gt; BASIC + holds recent history of log lines to help diagnose closed stdout,
3636
* holds the stack trace of abandoned log record.
3737
* This introduces a significant overhead to logging.
3838
*

core/src/main/java/io/questdb/client/std/Decimal128.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public static int compareTo(long aHigh, long aLow, int aScale, long bHigh, long
333333
}
334334

335335
/**
336-
* Divide two Decimal128 numbers and store the result in sink (a / b -> sink)
336+
* Divide two Decimal128 numbers and store the result in sink (a / b {@code ->} sink)
337337
* Uses optimal precision calculation up to MAX_SCALE
338338
*
339339
* @param a First operand (dividend)
@@ -477,7 +477,7 @@ public static boolean isNull(long hi, long lo) {
477477
}
478478

479479
/**
480-
* Calculate modulo of two Decimal128 numbers and store the result in sink (a % b -> sink)
480+
* Calculate modulo of two Decimal128 numbers and store the result in sink (a % b {@code ->} sink)
481481
*
482482
* @param a First operand (dividend)
483483
* @param b Second operand (divisor)
@@ -526,7 +526,7 @@ public static void putNull(long addr) {
526526
}
527527

528528
/**
529-
* Subtract two Decimal128 numbers and store the result in sink (a - b -> sink)
529+
* Subtract two Decimal128 numbers and store the result in sink (a - b {@code ->} sink)
530530
*
531531
* @param a First operand (minuend)
532532
* @param b Second operand (subtrahend)
@@ -1043,7 +1043,7 @@ public void ofZero() {
10431043
/**
10441044
* Rescale this Decimal128 in place
10451045
*
1046-
* @param newScale The new scale (must be >= current scale)
1046+
* @param newScale The new scale (must be {@code >=} current scale)
10471047
*/
10481048
public void rescale(int newScale) {
10491049
validateScale(newScale);

core/src/main/java/io/questdb/client/std/Decimal256.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ public boolean equals(Object obj) {
10891089
* Checks if this Decimal256 value fits within the specified storage size (pow 2).
10901090
* The value fits if its absolute magnitude can be represented with the given number of digits.
10911091
*
1092-
* @param size the target size (number of bytes available pow 2, e.g., 4 bytes -> 2)
1092+
* @param size the target size (number of bytes available pow 2, e.g., 4 bytes {@code ->} 2)
10931093
* @return true if the value fits within the storage size, false otherwise
10941094
*/
10951095
public boolean fitsInStorageSizePow2(int size) {
@@ -1615,7 +1615,7 @@ public void ofZero() {
16151615
/**
16161616
* Rescale this Decimal256 in place
16171617
*
1618-
* @param newScale The new scale (must be >= current scale)
1618+
* @param newScale The new scale (must be {@code >=} current scale)
16191619
*/
16201620
public void rescale(int newScale) {
16211621
if (isNull()) {
@@ -2869,7 +2869,7 @@ private void multiplyByPowerOf10InPlace(int n) {
28692869
/**
28702870
* Rescale this Decimal256 in place without checks
28712871
*
2872-
* @param newScale The new scale (must be >= current scale)
2872+
* @param newScale The new scale (must be {@code >=} current scale)
28732873
*/
28742874
private void rescale0(int newScale) {
28752875
int scaleDiff = newScale - this.scale;

core/src/main/java/io/questdb/client/std/Decimal64.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static void add(Decimal64 a, Decimal64 b, Decimal64 sink) {
112112
}
113113

114114
/**
115-
* Divide two Decimal64 numbers and store the result in sink (a / b -> sink)
115+
* Divide two Decimal64 numbers and store the result in sink (a / b {@code ->} sink)
116116
*/
117117
public static void divide(Decimal64 a, Decimal64 b, Decimal64 sink, int resultScale, RoundingMode roundingMode) {
118118
sink.copyFrom(a);
@@ -218,7 +218,7 @@ public static boolean isNull(long value) {
218218
}
219219

220220
/**
221-
* Calculate modulo of two Decimal64 numbers and store the result in sink (a % b -> sink)
221+
* Calculate modulo of two Decimal64 numbers and store the result in sink (a % b {@code ->} sink)
222222
*/
223223
public static void modulo(Decimal64 a, Decimal64 b, Decimal64 sink) {
224224
sink.copyFrom(a);
@@ -242,7 +242,7 @@ public static void negate(Decimal64 a, Decimal64 sink) {
242242
}
243243

244244
/**
245-
* Subtract two Decimal64 numbers and store the result in sink (a - b -> sink)
245+
* Subtract two Decimal64 numbers and store the result in sink (a - b {@code ->} sink)
246246
*/
247247
public static void subtract(Decimal64 a, Decimal64 b, Decimal64 sink) {
248248
sink.copyFrom(a);
@@ -704,7 +704,7 @@ public void ofZero() {
704704
/**
705705
* Rescale this Decimal64 in place
706706
*
707-
* @param newScale The new scale (must be >= current scale)
707+
* @param newScale The new scale (must be {@code >=} current scale)
708708
*/
709709
public void rescale(int newScale) {
710710
validateScale(newScale);

examples/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222
~
2323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
2424

25-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
26-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25+
<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/xsd/maven-4.0.0.xsd">
2726
<modelVersion>4.0.0</modelVersion>
2827

2928
<groupId>org.questdb</groupId>
3029
<artifactId>client-examples</artifactId>
31-
<version>1.0.0-SNAPSHOT</version>
30+
<version>1.0.1-SNAPSHOT</version>
3231
<name>Examples for QuestDB</name>
3332

3433
<dependencies>

pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
~
2323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
2424

25-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
26-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25+
<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">
2726
<modelVersion>4.0.0</modelVersion>
2827

29-
<version>1.0.0-SNAPSHOT</version>
28+
<version>1.0.1-SNAPSHOT</version>
3029
<groupId>org.questdb</groupId>
3130
<artifactId>client-parent</artifactId>
3231
<packaging>pom</packaging>
@@ -36,7 +35,7 @@
3635
<connection>scm:git:https://github.com/questdb/java-questdb-client.git</connection>
3736
<developerConnection>scm:git:https://github.com/questdb/java-questdb-client.git</developerConnection>
3837
<url>https://github.com/questdb/java-questdb-client</url>
39-
<tag>1.0.0</tag>
38+
<tag>HEAD</tag>
4039
</scm>
4140

4241
<build>

0 commit comments

Comments
 (0)