corda/gradle-plugins/api-scanner/build.gradle

54 lines
1.4 KiB
Groovy
Raw Normal View History

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'java-gradle-plugin'
apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'com.jfrog.artifactory'
description "Generates a summary of the artifact's public API"
repositories {
CORDA-939 - Modify Api Scanner to check api for internal exposures (#2534) * CORDA-939 Modify Api Scanner to check api for internal exposures (#2510) * Update check api changes to look for internals * Update several more uses of internal * Make check-api-changes script filter out internal class usages * Make CordaClock part of API * Update api-current.txt * Remove exclusion of nodeapi.internal * Remove access to CordaPersistence from public api * Don't expose DB Connection from StartedMockNode and remove unnecessary transaction from CustomVaultQueryTest * Make internal tests that use need db access use InternalMockNetwork * Make test certificates internal * Address further review comments * Revert some accidental changes to api-current.txt * Address Shams' review comments * Update Api Scanner to filter out CordaInternal attribute * Update api-current.txt * Remove superfluous brackets * Add transaction to StartedMockNode * More leaky transaction fixes # Conflicts: # .ci/api-current.txt # node-api/src/test/kotlin/net/corda/nodeapi/internal/AttachmentsClassLoaderStaticContractTests.kt # node-api/src/test/kotlin/net/corda/nodeapi/internal/AttachmentsClassLoaderTests.kt # node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt # node/src/test/kotlin/net/corda/node/internal/cordapp/CordappProviderImplTests.kt # testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/InternalMockNetwork.kt # testing/test-utils/src/main/kotlin/net/corda/testing/internal/MockCordappConfigProvider.kt # testing/test-utils/src/main/kotlin/net/corda/testing/internal/MockCordappProvider.kt * Bump gradle plugins version * One last internal exposure * Update constants.properties * Fix api-current * Address mikes review comments
2018-02-16 15:22:13 +00:00
mavenLocal()
mavenCentral()
jcenter()
}
gradlePlugin {
plugins {
apiScannerPlugin {
id = 'net.corda.plugins.api-scanner'
implementationClass = 'net.corda.plugins.ApiScanner'
}
}
}
configurations {
jacocoRuntime
}
dependencies {
compile "io.github.lukehutch:fast-classpath-scanner:2.18.2"
testCompile project(':api-scanner:annotations')
testCompile "org.assertj:assertj-core:$assertj_version"
testCompile "junit:junit:$junit_version"
// This dependency is only to prevent IntelliJ from choking
// on the Kotlin classes in the test/resources directory.
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
jacocoRuntime "org.jacoco:org.jacoco.agent:${jacoco.toolVersion}:runtime"
}
processTestResources {
filesMatching('**/kotlin-*/build.gradle') {
expand(['kotlin_version': kotlin_version])
}
filesMatching('gradle.properties') {
expand(['jacocoAgent': configurations.jacocoRuntime.asPath.replace('\\', '/'),
'buildDir': buildDir])
}
}
publish {
name project.name
}