mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-29 11:35:56 +00:00
62 lines
1.6 KiB
Groovy
62 lines
1.6 KiB
Groovy
![]() |
plugins {
|
||
|
id("com.palantir.git-version") apply false
|
||
|
id 'java'
|
||
|
id 'com.github.johnrengelman.shadow'
|
||
|
id 'jacoco'
|
||
|
id 'signing'
|
||
|
id 'io.codearte.nexus-staging'
|
||
|
id 'maven-publish'
|
||
|
}
|
||
|
|
||
|
apply from: "../versioning.gradle"
|
||
|
|
||
|
dependencies {
|
||
|
implementation project(':metadata-models')
|
||
|
implementation project(path: ':metadata-models', configuration: "dataTemplate")
|
||
|
|
||
|
implementation externalDependency.slf4jApi
|
||
|
implementation externalDependency.jacksonDataBind
|
||
|
runtimeOnly externalDependency.jna
|
||
|
|
||
|
compileOnly externalDependency.lombok
|
||
|
annotationProcessor externalDependency.lombok
|
||
|
// VisibleForTesting
|
||
|
compileOnly externalDependency.guava
|
||
|
testImplementation externalDependency.testng
|
||
|
testImplementation externalDependency.mockito
|
||
|
testImplementation externalDependency.testContainers
|
||
|
testImplementation externalDependency.httpAsyncClient
|
||
|
testRuntimeOnly externalDependency.logbackClassicJava8
|
||
|
}
|
||
|
|
||
|
jacocoTestReport {
|
||
|
dependsOn test // tests are required to run before generating the report
|
||
|
}
|
||
|
|
||
|
task copyAvroSchemas {
|
||
|
dependsOn(':metadata-events:mxe-schemas:renameNamespace')
|
||
|
copy {
|
||
|
from file('../../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeProposal.avsc')
|
||
|
into file('./src/main/resources')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
compileJava.dependsOn copyAvroSchemas
|
||
|
|
||
|
test {
|
||
|
// to avoid simultaneous executions of tests when complete build is run
|
||
|
mustRunAfter(":metadata-io:test")
|
||
|
useJUnit()
|
||
|
finalizedBy jacocoTestReport
|
||
|
}
|
||
|
|
||
|
// task sourcesJar(type: Jar) {
|
||
|
// archiveClassifier = 'sources'
|
||
|
// from sourceSets.main.allSource
|
||
|
//}
|
||
|
|
||
|
//task javadocJar(type: Jar) {
|
||
|
// archiveClassifier = 'javadoc'
|
||
|
// from javadoc
|
||
|
//}
|