Verify RegistryTool can instantiate (#400)

* Verify RegistryTool can instantiate

Add a task that instantiates all command classes in RegistryTool
with runtimeClasspath.

Also make sure that runtimeClasspath is a superset of
compileClasspath.
This commit is contained in:
Weimin Yu 2019-12-06 12:08:16 -05:00 committed by GitHub
parent df7d272157
commit bba5aff4b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 4 deletions

View file

@ -54,7 +54,9 @@ tasks.test.finalizedBy jacocoTestReport
configurations {
deploy_jar.extendsFrom runtimeClasspath
runtimeClasspath {
all.findAll {
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
@ -62,7 +64,7 @@ configurations {
//exclude group: 'junit'
// Mockito is from org.apache.beam:beam-runners-google-cloud-dataflow-java
// See https://issues.apache.org/jira/browse/BEAM-8862
exclude group: 'org.mockito', module: 'mockito-core'
it.exclude group: 'org.mockito', module: 'mockito-core'
}
}