@@ -17,7 +17,6 @@ dependencies {
17
17
implementation project(' :airbyte-config:config-models' )
18
18
implementation project(' :airbyte-config:config-persistence' )
19
19
implementation project(' :airbyte-protocol:protocol-models' )
20
- implementation project(' :airbyte-commons-worker' )
21
20
implementation ' org.mockito:mockito-core:4.6.1'
22
21
23
22
implementation ' net.sourceforge.argparse4j:argparse4j:0.8.1'
@@ -30,7 +29,7 @@ dependencies {
30
29
31
30
def getFullPath (String className ) {
32
31
def matchingFiles = project. fileTree(" src/main/java" )
33
- .filter { file -> file. getName(). equals(" ${ className} .java" . toString())}. asCollection()
32
+ .filter { file -> file. getName(). equals(" ${ className} .java" . toString()) }. asCollection()
34
33
if (matchingFiles. size() == 0 ) {
35
34
throw new IllegalArgumentException (" Ambiguous class name ${ className} : no file found." )
36
35
}
@@ -51,14 +50,15 @@ task generateSourceTestDocs(type: Javadoc) {
51
50
destinationDir = javadocOutputDir
52
51
53
52
doLast {
54
- def className = " SourceAcceptanceTest" // this can be made into a list once we have multiple standard tests, and can also be used for destinations
53
+ def className = " SourceAcceptanceTest"
54
+ // this can be made into a list once we have multiple standard tests, and can also be used for destinations
55
55
def pathInPackage = getFullPath(className)
56
56
def stdSrcTest = project. file(" ${ javadocOutputDir} /${ pathInPackage} .html" ). readLines(). join(" \n " )
57
57
def methodList = Jsoup . parse(stdSrcTest). body(). select(" section.methodDetails>ul>li>section" )
58
58
def md = " "
59
- for (methodInfo in methodList){
59
+ for (methodInfo in methodList) {
60
60
def annotations = methodInfo. select(" .memberSignature>.annotations" ). text()
61
- if (! annotations. contains(" @Test" )){
61
+ if (! annotations. contains(" @Test" )) {
62
62
continue
63
63
}
64
64
def methodName = methodInfo. selectFirst(" div>span.memberName" ). text()
@@ -73,7 +73,7 @@ task generateSourceTestDocs(type: Javadoc) {
73
73
outputDoc. append md
74
74
}
75
75
76
- outputs. upToDateWhen {false }
76
+ outputs. upToDateWhen { false }
77
77
}
78
78
79
79
project. build. dependsOn(generateSourceTestDocs)
0 commit comments