Skip to content

Commit

Permalink
Update local dependencies (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-shettyy authored Jul 10, 2024
1 parent 9ac6858 commit 97256f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 17 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,32 @@ 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".
if (hasProperty('cfLocal')) {
def cfHome = String.valueOf(System.getenv('CHECKERFRAMEWORK'))
dependencies {
testImplementation files(cfHome + '/checker/dist/checker.jar')
testImplementation files(cfHome + '/checker/dist/checker-qual.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
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ junitVer = "5.10.3"
guavaVer = "33.2.1-jre"
jSpecifyConformanceTestVer = "0.0.0-SNAPSHOT"
checkerFrameworkVer = "3.42.0-eisop3"
plumeUtilVer = "1.9.0"

[libraries]
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junitVer" }
Expand All @@ -12,3 +13,4 @@ jspecify-conformance-framework = { module = "org.jspecify.conformance:conformanc
checkerframework-checker = { module = "io.github.eisop:checker", version.ref = "checkerFrameworkVer" }
checkerframework-framework-test = { module = "io.github.eisop:framework-test", version.ref = "checkerFrameworkVer" }
checkerframework-qual = { module = "io.github.eisop:checker-qual", version.ref = "checkerFrameworkVer" }
plume-utils = { module = "org.plumelib:plume-util", version.ref = "plumeUtilVer" }

0 comments on commit 97256f7

Please sign in to comment.