diff --git a/airbyte-integrations/bases/standard-destination-test/build.gradle b/airbyte-integrations/bases/standard-destination-test/build.gradle index bb98faae7b65..fc0f369fdbbf 100644 --- a/airbyte-integrations/bases/standard-destination-test/build.gradle +++ b/airbyte-integrations/bases/standard-destination-test/build.gradle @@ -9,7 +9,6 @@ dependencies { implementation project(':airbyte-json-validation') implementation project(':airbyte-integrations:bases:base-java') implementation project(':airbyte-protocol:protocol-models') - implementation project(':airbyte-commons-worker') implementation(enforcedPlatform('org.junit:junit-bom:5.8.2')) implementation 'org.junit.jupiter:junit-jupiter-api' diff --git a/airbyte-integrations/bases/standard-source-test/build.gradle b/airbyte-integrations/bases/standard-source-test/build.gradle index a006bbc02d76..ba8fde811deb 100644 --- a/airbyte-integrations/bases/standard-source-test/build.gradle +++ b/airbyte-integrations/bases/standard-source-test/build.gradle @@ -17,7 +17,6 @@ dependencies { implementation project(':airbyte-config:config-models') implementation project(':airbyte-config:config-persistence') implementation project(':airbyte-protocol:protocol-models') - implementation project(':airbyte-commons-worker') implementation 'org.mockito:mockito-core:4.6.1' implementation 'net.sourceforge.argparse4j:argparse4j:0.8.1' @@ -30,7 +29,7 @@ dependencies { def getFullPath(String className) { def matchingFiles = project.fileTree("src/main/java") - .filter { file -> file.getName().equals("${className}.java".toString())}.asCollection() + .filter { file -> file.getName().equals("${className}.java".toString()) }.asCollection() if (matchingFiles.size() == 0) { throw new IllegalArgumentException("Ambiguous class name ${className}: no file found.") } @@ -51,14 +50,15 @@ task generateSourceTestDocs(type: Javadoc) { destinationDir = javadocOutputDir doLast { - def className = "SourceAcceptanceTest" // this can be made into a list once we have multiple standard tests, and can also be used for destinations + def className = "SourceAcceptanceTest" + // this can be made into a list once we have multiple standard tests, and can also be used for destinations def pathInPackage = getFullPath(className) def stdSrcTest = project.file("${javadocOutputDir}/${pathInPackage}.html").readLines().join("\n") def methodList = Jsoup.parse(stdSrcTest).body().select("section.methodDetails>ul>li>section") def md = "" - for (methodInfo in methodList){ + for (methodInfo in methodList) { def annotations = methodInfo.select(".memberSignature>.annotations").text() - if (!annotations.contains("@Test")){ + if (!annotations.contains("@Test")) { continue } def methodName = methodInfo.selectFirst("div>span.memberName").text() @@ -73,7 +73,7 @@ task generateSourceTestDocs(type: Javadoc) { outputDoc.append md } - outputs.upToDateWhen {false} + outputs.upToDateWhen { false } } project.build.dependsOn(generateSourceTestDocs)