Skip to content

Commit

Permalink
refactor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-shettyy committed Apr 27, 2024
1 parent c803f60 commit 0388fd5
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,8 @@ dependencies {
testImplementation libs.junit
testRuntimeOnly libs.junit

// This dependency is used by the application.
implementation libs.guava

testImplementation libs.jspecify.conformance.framework
jSpecifyConformanceTests libs.jspecify.conformance.tests

testImplementation libs.checkerframework.checker
testImplementation libs.checkerframework.framework.test
testImplementation libs.checkerframework.qual
}

// To use a locally-built Checker Framework, run gradle with "-PcfLocal".
Expand All @@ -50,11 +43,23 @@ if (hasProperty('cfLocal')) {
dependencies {
testImplementation files(cfHome + '/checker/dist/checker.jar')
testImplementation files(cfHome + '/checker/dist/checker-qual.jar')
testImplementation fileTree(dir: cfHome + '/framework-test/build/libs',
include: '*.jar',
exclude: ['*-sources.jar', '*-javadoc.jar'])

def frameworkTestTree = fileTree(dir: cfHome + '/framework-test/build/libs',
include: '*.jar',
exclude: ['*-sources.jar', '*-javadoc.jar'])

if (frameworkTestTree.files.size() != 1) {
logger.warn("Expected exactly one framework-test jar, but found " + frameworkTestTree.files.size() + " jars.")
}
testImplementation frameworkTestTree
testImplementation libs.plume.utils
}
} else {
dependencies {
testImplementation libs.checkerframework.checker
testImplementation libs.checkerframework.framework.test
testImplementation libs.checkerframework.qual
}
}

spotless {
Expand Down

0 comments on commit 0388fd5

Please sign in to comment.