1
|
package eu.dnetlib.utils;
|
2
|
|
3
|
import org.jhades.JHades;
|
4
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
5
|
import org.springframework.context.annotation.Bean;
|
6
|
import org.springframework.context.annotation.Configuration;
|
7
|
|
8
|
@Configuration
|
9
|
public class JHadesConfiguration {
|
10
|
|
11
|
@Bean
|
12
|
@ConditionalOnExpression("${jhades.show:false}")
|
13
|
public JHades jhades() {
|
14
|
|
15
|
final JHades jh = new JHades();
|
16
|
|
17
|
System.out.println("\n\n\n*******************************************************************************");
|
18
|
System.out.println("* JHAdes Report - START");
|
19
|
System.out.println("*******************************************************************************\n\n\n");
|
20
|
jh.printClassLoaderNames()
|
21
|
.printClasspath()
|
22
|
.overlappingJarsReport()
|
23
|
.multipleClassVersionsReport();
|
24
|
System.out.println("\n\n\n*******************************************************************************");
|
25
|
System.out.println("* JHAdes Report - END");
|
26
|
System.out.println("*******************************************************************************\n\n\n");
|
27
|
|
28
|
return jh;
|
29
|
}
|
30
|
}
|