Skip to content

Commit 4327bf3

Browse files
committed
Implement FlatDir repository for JPF core dependencies
- Add flatDir repository pointing to ../jpf-core/build - Replace fileTree dependency with explicit JPF JAR dependencies - Use 'implementation name: jpf-classes' and 'implementation name: jpf' - Remove local lib/ directory approach in favor of flatDir - Update Java compatibility to VERSION_11 This approach automatically uses the latest JARs from jpf-core and follows Gradle best practices for local dependencies.
1 parent c0b0697 commit 4327bf3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@ group = 'gov.nasa.jpf'
66
version = '1.2.0'
77

88
java {
9-
sourceCompatibility = JavaVersion.VERSION_1_8
10-
targetCompatibility = JavaVersion.VERSION_1_8
9+
sourceCompatibility = JavaVersion.VERSION_11
10+
targetCompatibility = JavaVersion.VERSION_11
1111
}
1212

1313
repositories {
1414
mavenCentral()
15+
flatDir {
16+
dirs '../jpf-core/build'
17+
}
1518
}
1619

1720
dependencies {
18-
implementation fileTree(dir: 'lib', include: '*.jar')
19-
testImplementation 'junit:junit:4.13.2'
21+
// JPF Core dependencies (local JARs)
22+
implementation name: 'jpf-classes'
23+
implementation name: 'jpf'
2024

21-
// CLI parsing
25+
// External dependencies
2226
implementation 'commons-cli:commons-cli:1.5.0'
27+
testImplementation 'junit:junit:4.13.2'
2328
}
2429

2530
sourceSets {

0 commit comments

Comments
 (0)