mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 04:25:29 +00:00
70 lines
1.9 KiB
Groovy
70 lines
1.9 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'pegasus'
|
|
|
|
sourceSets {
|
|
integTest {
|
|
compileClasspath += sourceSets.main.output
|
|
runtimeClasspath += sourceSets.main.output
|
|
}
|
|
}
|
|
|
|
idea{
|
|
module {
|
|
testSourceDirs += file('src/integTest/java')
|
|
scopes.TEST.plus += [ configurations.integTestCompile ]
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
integTestImplementation.extendsFrom implementation
|
|
integTestRuntimeOnly.extendsFrom runtimeOnly
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':gms:api')
|
|
compile project(path: ':gms:api', configuration: 'dataTemplate')
|
|
compile project(':li-utils')
|
|
compile project(':metadata-models')
|
|
compile project(':metadata-testing:metadata-test-utils')
|
|
compile spec.product.pegasus.restliServer
|
|
compile externalDependency.gmaDaoApi
|
|
compile externalDependency.gmaDaoApiDataTemplate
|
|
compile externalDependency.gmaEbeanDao
|
|
compile externalDependency.gmaElasticsearchDao
|
|
compile externalDependency.gmaNeo4jDao
|
|
compile externalDependency.gmaRestliResources
|
|
compile externalDependency.gmaRestliResourcesDataTemplate
|
|
compile externalDependency.neo4jJavaDriver
|
|
|
|
compileOnly externalDependency.lombok
|
|
|
|
testCompile externalDependency.parseqTest
|
|
testCompile externalDependency.mockito
|
|
testCompile externalDependency.testng
|
|
|
|
integTestImplementation externalDependency.junitJupiterApi
|
|
integTestRuntimeOnly externalDependency.junitJupiterEngine
|
|
|
|
integTestCompile externalDependency.gmaElasticsearchIntegTest
|
|
integTestCompile externalDependency.junitJupiterApi
|
|
integTestCompile externalDependency.junitJupiterParams
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
description = 'Runs integration tests.'
|
|
group = 'verification'
|
|
useJUnitPlatform()
|
|
|
|
testClassesDirs = sourceSets.integTest.output.classesDirs
|
|
classpath = sourceSets.integTest.runtimeClasspath
|
|
shouldRunAfter test
|
|
}
|
|
|
|
check.dependsOn integrationTest
|
|
|
|
// Generate IDLs
|
|
pegasus.main.idlOptions.addIdlItem([
|
|
'com.linkedin.metadata.resources',
|
|
])
|
|
|
|
ext.apiProject = project(':gms:api') |