java CDK: clean up dependencies, refactor modules (#34745)
This commit is contained in:
35
build.gradle
35
build.gradle
@@ -180,6 +180,7 @@ subprojects { subproj ->
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'java-test-fixtures'
|
||||
apply plugin: 'jacoco'
|
||||
apply plugin: 'com.github.spotbugs'
|
||||
|
||||
@@ -194,6 +195,10 @@ subprojects { subproj ->
|
||||
//deprecation and removal are removed from error since we should still test those constructs.
|
||||
options.compilerArgs += ["-Werror", "-Xlint:all,-serial,-processing,-rawtypes,-unchecked,-deprecation,-removal"]
|
||||
}
|
||||
compileTestFixturesJava {
|
||||
//rawtypes and unchecked are necessary for mockito
|
||||
options.compilerArgs += ["-Werror", "-Xlint:all,-serial,-processing,-rawtypes,-unchecked"]
|
||||
}
|
||||
}
|
||||
|
||||
if (isConnectorProject(subproj)) {
|
||||
@@ -324,45 +329,27 @@ subprojects { subproj ->
|
||||
finalizedBy jacocoTestReportTask
|
||||
}
|
||||
|
||||
// TODO: These should be added to the CDK or to the individual projects that need them:
|
||||
|
||||
dependencies {
|
||||
implementation(platform("com.fasterxml.jackson:jackson-bom:2.13.0"))
|
||||
implementation(platform("org.glassfish.jersey:jersey-bom:2.31"))
|
||||
|
||||
// version is handled by "com.fasterxml.jackson:jackson-bom:2.10.4", so we do not explicitly set it here.
|
||||
implementation libs.bundles.jackson
|
||||
implementation libs.guava
|
||||
implementation libs.commons.io
|
||||
implementation libs.bundles.apache
|
||||
implementation libs.slf4j.api
|
||||
|
||||
// SLF4J as a facade over Log4j2 required dependencies
|
||||
implementation libs.bundles.log4j
|
||||
implementation libs.appender.log4j2
|
||||
|
||||
// Bridges from other logging implementations to SLF4J
|
||||
implementation libs.bundles.slf4j
|
||||
|
||||
// Lombok dependencies
|
||||
compileOnly libs.lombok
|
||||
annotationProcessor libs.lombok
|
||||
|
||||
testCompileOnly libs.lombok
|
||||
testAnnotationProcessor libs.lombok
|
||||
testFixturesCompileOnly libs.lombok
|
||||
testFixturesAnnotationProcessor libs.lombok
|
||||
|
||||
// JUnit dependencies
|
||||
testRuntimeOnly libs.junit.jupiter.engine
|
||||
testImplementation libs.bundles.junit
|
||||
testImplementation libs.assertj.core
|
||||
|
||||
testImplementation libs.junit.pioneer
|
||||
testFixturesImplementation libs.bundles.junit
|
||||
testFixturesImplementation libs.assertj.core
|
||||
testFixturesImplementation libs.junit.pioneer
|
||||
|
||||
// adds owasp plugin
|
||||
spotbugsPlugins libs.findsecbugs.plugin
|
||||
implementation libs.spotbugs.annotations
|
||||
|
||||
// Airbyte dependencies.
|
||||
implementation libs.airbyte.protocol
|
||||
}
|
||||
|
||||
tasks.withType(SpotBugsTask).configureEach {
|
||||
|
||||
Reference in New Issue
Block a user