apply plugin: 'elasticsearch.esplugin' esplugin { name 'repositories-metering-api' description 'Repositories metering API' classname 'org.elasticsearch.xpack.repositories.metering.RepositoriesMeteringPlugin' extendedPlugins = ['x-pack-core'] } archivesBaseName = 'x-pack-repositories-metering-api' dependencies { compileOnly project(path: xpackModule('core'), configuration: 'default') testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts') } // add all sub-projects of the qa sub-project gradle.projectsEvaluated { project.subprojects .find { it.path == project.path + ":qa" } .subprojects .findAll { it.path.startsWith(project.path + ":qa") } .each { check.dependsOn it.check } } configurations { testArtifacts.extendsFrom testRuntime testArtifacts.extendsFrom testImplementation } task testJar(type: Jar) { appendix 'test' from sourceSets.test.output } artifacts { testArtifacts testJar }