Skip to content

Commit 803490c

Browse files
committed
Ensure generation will work
1 parent c7b751d commit 803490c

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
#!/usr/bin/env bash
22
set -e
3+
# add the adoc2md script to the path
4+
export PATH=$PATH:$(pwd)/../scripts
35

4-
REGISTRY="https://registry.npmjs.org"
5-
6-
if [ "$1" = "local" ]; then
6+
# build
7+
if [ "$1" = "publish-local" ]; then
78
REGISTRY="http://localhost:4873"
8-
fi
9+
mvn -fae -Pio.vertx,io.reactiverse exec:exec@npm-publish
10+
elif [ "$1" = "publish" ]; then
11+
REGISTRY="https://registry.npmjs.org"
912

10-
# build
11-
if [ "$1" = "local" ]; then
12-
mvn -fae -Pio.vertx,io.reactiverse -Dnpm-registry="$REGISTRY" clean generate-sources exec:exec@typedoc exec:exec@adoc2md exec:exec@npm-publish
13-
else
1413
echo "login as vertx"
1514
npm adduser --registry "$REGISTRY"
1615
mvn -fae -Pio.vertx -Dnpm-registry="$REGISTRY" exec:exec@npm-publish
1716

1817
echo "login as reactiverse"
1918
npm adduser --registry "$REGISTRY"
2019
mvn -fae -Pio.reactiverse -Dnpm-registry="$REGISTRY" exec:exec@npm-publish
20+
else
21+
mvn -fae -Pio.vertx,io.reactiverse clean generate-sources exec:exec@typedoc exec:exec@adoc2md
2122
fi

generator/io.vertx/vertx-pg-client/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
</properties>
3131

3232
<dependencies>
33+
<!-- Otptionals -->
34+
<dependency>
35+
<groupId>com.ongres.scram</groupId>
36+
<artifactId>client</artifactId>
37+
<version>1.0.0-beta.2</version>
38+
<optional>true</optional>
39+
</dependency>
3340
<!-- SOURCE TO GENERATE -->
3441
<dependency>
3542
<groupId>${maven.groupId}</groupId>

0 commit comments

Comments
 (0)