FINERACT-2326: Build jar for fineract-e2e-tests-core module

This commit is contained in:
Adam Saghy
2025-09-25 11:37:39 +02:00
parent 9015a81c4b
commit 9c9ae2f6ce
+23
View File
@@ -102,3 +102,26 @@ dependencies {
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters") options.compilerArgs.add("-parameters")
} }
// Configure the jar task to include test classes and resources
tasks.named('jar') {
from sourceSets.test.output
// Include the test resources
from(sourceSets.test.resources) {
// Handle duplicate files by using the first one found
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
// Include the manifest with the classpath
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Created-By': 'Gradle ' + gradle.gradleVersion,
'Build-Jdk': System.getProperty('java.version')
)
}
}