Skip to content

Commit

Permalink
Ensure generation will work
Browse files Browse the repository at this point in the history
  • Loading branch information
pmlopes committed Mar 30, 2020
1 parent c7b751d commit 803490c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
17 changes: 9 additions & 8 deletions generator/publish.sh → generator/build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
#!/usr/bin/env bash
set -e
# add the adoc2md script to the path
export PATH=$PATH:$(pwd)/../scripts

REGISTRY="https://registry.npmjs.org"

if [ "$1" = "local" ]; then
# build
if [ "$1" = "publish-local" ]; then
REGISTRY="http://localhost:4873"
fi
mvn -fae -Pio.vertx,io.reactiverse exec:exec@npm-publish
elif [ "$1" = "publish" ]; then
REGISTRY="https://registry.npmjs.org"

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

echo "login as reactiverse"
npm adduser --registry "$REGISTRY"
mvn -fae -Pio.reactiverse -Dnpm-registry="$REGISTRY" exec:exec@npm-publish
else
mvn -fae -Pio.vertx,io.reactiverse clean generate-sources exec:exec@typedoc exec:exec@adoc2md
fi
7 changes: 7 additions & 0 deletions generator/io.vertx/vertx-pg-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
</properties>

<dependencies>
<!-- Otptionals -->
<dependency>
<groupId>com.ongres.scram</groupId>
<artifactId>client</artifactId>
<version>1.0.0-beta.2</version>
<optional>true</optional>
</dependency>
<!-- SOURCE TO GENERATE -->
<dependency>
<groupId>${maven.groupId}</groupId>
Expand Down

0 comments on commit 803490c

Please sign in to comment.