FINERACT-2122: Add devRun gradle task, optimize build caching, fix deprecations
This commit is contained in:
committed by
Adam Saghy
parent
ddc8b1a0a7
commit
384a52bbaf
@@ -21,10 +21,41 @@ plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
// Configure source sets with proper output directories
|
||||
sourceSets {
|
||||
test {
|
||||
java {
|
||||
destinationDirectory = layout.buildDirectory.dir('classes/java/test').get().asFile
|
||||
}
|
||||
resources {
|
||||
destinationDirectory = layout.buildDirectory.dir('resources/test').get().asFile
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
// Configure test compilation
|
||||
tasks.named('compileTestJava') {
|
||||
description = 'Compiles test Java source files'
|
||||
|
||||
// Enable caching
|
||||
outputs.cacheIf { true }
|
||||
|
||||
// Configure compiler options
|
||||
options.compilerArgs.add("-parameters")
|
||||
|
||||
// Ensure proper output tracking
|
||||
outputs.dir(sourceSets.test.java.destinationDirectory)
|
||||
.withPropertyName("testClassesDir")
|
||||
|
||||
// Track annotation processor outputs
|
||||
options.annotationProcessorGeneratedSourcesDirectory =
|
||||
layout.buildDirectory.dir('generated/sources/annotationProcessor/java/test').get().asFile
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(project(':fineract-avro-schemas'))
|
||||
testImplementation(project(':fineract-client'))
|
||||
|
||||
Reference in New Issue
Block a user