FINERACT-2122: Add devRun gradle task, optimize build caching, fix deprecations

This commit is contained in:
Kristof Jozsa
2025-01-22 17:03:24 +01:00
committed by Adam Saghy
parent ddc8b1a0a7
commit 384a52bbaf
33 changed files with 556 additions and 175 deletions
+31
View File
@@ -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'))