Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion java-bigquery/google-cloud-bigquery-jdbc/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
drivers/
drivers/**
target-it/**
20 changes: 12 additions & 8 deletions java-bigquery/google-cloud-bigquery-jdbc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ CONTAINER_NAME=jdbc
PACKAGE_DESTINATION=$(PWD)/drivers
SRC="$(PWD)"
skipSurefire ?= true
JDBC_DRIVER_VERSION := $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
Comment thread
logachev marked this conversation as resolved.
Outdated
JDBC_JAR ?= $(PACKAGE_DESTINATION)/google-cloud-bigquery-jdbc-$(JDBC_DRIVER_VERSION)-all.jar


# no indendation for ifndef\endif due to their evaluation before execution
.check-env: |
Expand Down Expand Up @@ -59,14 +62,15 @@ package:
mvn clean package \
-DincludeScope=runtime \
-Dmaven.test.skip=true
mvn dependency:copy-dependencies \
-DincludeScope=runtime
${MAKE} generate-dependency-list

generate-dependency-list:
mvn -B dependency:list \
-f pom.xml \
-DincludeScope=runtime | grep :jar: | sed -E "s/^.* ([^: ]+):([^:]+):([^:]+):([^:]+).*/<dependency><groupId>\1<\/groupId><artifactId>\2<\/artifactId><version>\4<\/version><\/dependency>/g" > dependencies.txt
mkdir -p $(PACKAGE_DESTINATION)
cp target/google-cloud-bigquery-jdbc-*-all.jar $(PACKAGE_DESTINATION)/

build-it-standalone:
mvn -Dmaven.test.skip=true package -f pom-it.xml

run-it-standalone:
java -cp $(JDBC_JAR):target-it/google-cloud-bigquery-jdbc-it-standalone-1.0-SNAPSHOT.jar org.junit.platform.console.ConsoleLauncher --select-class com.google.cloud.bigquery.jdbc.it.suites.ITDriverAgnosticTests
Comment thread
logachev marked this conversation as resolved.
Outdated


# Commands for dockerized environments
.docker-run: |
Expand Down
1 change: 1 addition & 0 deletions java-bigquery/google-cloud-bigquery-jdbc/pom-it.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
</dependencies>

<build>
<directory>target-it</directory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading