FINERACT-2339: squelch static weaving log messages
This quality of life patch reduces static weaving log message priority,
reducing the default gradle build output by about 60 lines.
example gradle run with these messages:
> Configure project :custom
ℹ Skipping static weaving configuration for non-Java project: custom
> Configure project :fineract-accounting
Configuring EclipseLink static weaving for fineract-accounting
> Configure project :fineract-branch
Configuring EclipseLink static weaving for fineract-branch
...
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
// Only configure if this is a Java project
|
// Only configure if this is a Java project
|
||||||
if (!project.plugins.hasPlugin('java')) {
|
if (!project.plugins.hasPlugin('java')) {
|
||||||
logger.lifecycle("ℹ Skipping static weaving configuration for non-Java project: ${project.name}")
|
logger.info("ℹ Skipping static weaving configuration for non-Java project: ${project.name}")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ project.afterEvaluate {
|
|||||||
def hasJpaEntities = persistenceXmlFile.exists()
|
def hasJpaEntities = persistenceXmlFile.exists()
|
||||||
|
|
||||||
if (hasJpaEntities) {
|
if (hasJpaEntities) {
|
||||||
logger.lifecycle("Configuring EclipseLink static weaving for ${project.name}")
|
logger.info("Configuring EclipseLink static weaving for ${project.name}")
|
||||||
|
|
||||||
compileJava.doLast {
|
compileJava.doLast {
|
||||||
def source = sourceSets.main.java.classesDirectory.get()
|
def source = sourceSets.main.java.classesDirectory.get()
|
||||||
@@ -59,8 +59,8 @@ project.afterEvaluate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.lifecycle("✓ EclipseLink static weaving configured for ${project.name}")
|
logger.info("✓ EclipseLink static weaving configured for ${project.name}")
|
||||||
} else {
|
} else {
|
||||||
logger.lifecycle("ℹ No JPA entities found in ${project.name}, skipping static weaving configuration")
|
logger.info("ℹ No JPA entities found in ${project.name}, skipping static weaving configuration")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user