Create a new app to hold GenerateSqlSchemaCommand (#409)

* Create a new app to hold GenerateSqlSchemaCommand

GenerateSqlSchemaCommand starts postgresql using testcontainer.
This makes junit etc a runtime dependency, allowing them to get
into release artifacts.

By moving this command to a separate tool, we can remove junit
etc as compile/runtime dependency.
This commit is contained in:
Weimin Yu 2019-12-13 16:05:35 -05:00 committed by GitHub
parent 1143b25391
commit 6aaf081489
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 1163 additions and 154 deletions

View file

@ -58,10 +58,8 @@ configurations {
it.name in ['runtimeClasspath', 'compileClasspath']
}.each {
// JUnit is from org.apache.beam:beam-runners-google-cloud-dataflow-java,
// testcontainer (which we use in the nomulus tool), and json-simple.
// We should really be excluding this, however GenerateSqlCommand in
// nomulus-tool currently uses testcontainers which, in turn, needs junit.
//exclude group: 'junit'
// and json-simple.
it.exclude group: 'junit'
// Mockito is from org.apache.beam:beam-runners-google-cloud-dataflow-java
// See https://issues.apache.org/jira/browse/BEAM-8862
it.exclude group: 'org.mockito', module: 'mockito-core'