Skip to content

Commit

Permalink
Cleanup dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed Mar 17, 2023
1 parent 2b56f54 commit f6576dc
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,51 +68,40 @@ description = 'New code for Egeria'
// TODO: Specify Dependency versions as variables
ext {
egeriaVersion = '3.15'
jacksonVersion = '2.14.2'
jupiterVersion = '5.9.2'
kafkaVersion = '3.3.2'
}
dependencies {
// This will set constraints so that dependencies here follow egeria versions
// this will include egeria, junit, jackson, jupiter, kafka - so no versions are needed below
platform "org.odpi.egeria:egeria:${egeriaVersion}"
implementation platform("org.odpi.egeria:egeria:${egeriaVersion}")
// Only used for build - already present in server chassis at runtime
compileOnly "org.odpi.egeria:audit-log-framework:${egeriaVersion}"
compileOnly "org.odpi.egeria:data-manager-api:${egeriaVersion}"
compileOnly "org.apache.commons:commons-lang"
compileOnly "org.odpi.egeria:audit-log-framework"
compileOnly "org.odpi.egeria:data-manager-api"
// TODO: this is a dependency on an optional connector. validate, document as needed, consider packaging impact

// compileOnly "org.odpi.egeria:kafka-open-metadata-topic-connector"
compileOnly "org.odpi.egeria:open-connector-framework"
compileOnly "org.odpi.egeria:repository-services-apis"
compileOnly "org.odpi.egeria:repository-services:${egeriaVersion}"
compileOnly "org.odpi.egeria:topic-integrator-api:${egeriaVersion}"
compileOnly "org.odpi.egeria:asset-manager-api:${egeriaVersion}"
compileOnly "org.odpi.egeria:openlineage-integration-connectors:${egeriaVersion}"
api "org.odpi.egeria:lineage-integrator-api:${egeriaVersion}"
compileOnly "org.odpi.egeria:topic-integrator-api"
compileOnly "org.odpi.egeria:asset-manager-api"
compileOnly "org.odpi.egeria:openlineage-integration-connectors"
api "org.odpi.egeria:lineage-integrator-api"
// Needed for build and run
compileOnly "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compileOnly "com.fasterxml.jackson.core:jackson-annotations"
implementation "com.fasterxml.jackson.core:jackson-core"
implementation "com.fasterxml.jackson.core:jackson-databind"

// Only needed to compile test code
testImplementation "org.odpi.egeria:asset-manager-client:${egeriaVersion}"
testCompileOnly "org.odpi.egeria:lineage-integrator-api:${egeriaVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${jupiterVersion}"
testImplementation "org.apache.kafka:kafka-clients:${kafkaVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testImplementation "org.odpi.egeria:asset-manager-client"
testCompileOnly "org.odpi.egeria:lineage-integrator-api"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.apache.kafka:kafka-clients"

}


// Testing
test {
useJUnitPlatform {
includeEngines 'junit-jupiter'
}
dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jupiterVersion}"
}

useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
Expand All @@ -121,7 +110,6 @@ test {
}
}


// Maven Central (technically sonatype oss) requires we distribute source and javadoc.
java {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down

0 comments on commit f6576dc

Please sign in to comment.