Skip to content

Commit

Permalink
Fix ConditionalOnClass-problem
Browse files Browse the repository at this point in the history
  • Loading branch information
denschu committed Mar 10, 2015
1 parent 85a0478 commit a5096b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-starter-batch-web</artifactId>
<version>1.3.3-SNAPSHOT</version>
<version>1.3.4-SNAPSHOT</version>
<name>spring-boot-starter-batch-web</name>
<description>Boot starter for batch web applications</description>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import java.net.InetAddress;
import java.net.UnknownHostException;

import metrics_influxdb.InfluxdbReporter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.export.Exporter;
import org.springframework.boot.actuate.metrics.reader.MetricReader;
Expand All @@ -31,7 +29,6 @@

import com.codahale.metrics.ConsoleReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.graphite.GraphiteReporter;

import de.codecentric.batch.metrics.ConsoleMetricsExporter;
import de.codecentric.batch.metrics.GraphiteMetricsExporter;
Expand Down Expand Up @@ -67,7 +64,7 @@ public Exporter consoleExporter() {

@Bean
@ConditionalOnProperty("batch.metrics.export.graphite.enabled")
@ConditionalOnClass(GraphiteReporter.class)
@ConditionalOnClass(name="com.codahale.metrics.graphite.GraphiteReporter")
public Exporter graphiteExporter() {
String server = env.getProperty("batch.metrics.export.graphite.server");
Integer port = env.getProperty("batch.metrics.export.graphite.port",
Expand All @@ -80,7 +77,7 @@ public Exporter graphiteExporter() {

@Bean
@ConditionalOnProperty("batch.metrics.export.influxdb.enabled")
@ConditionalOnClass(InfluxdbReporter.class)
@ConditionalOnClass(name="metrics_influxdb.InfluxdbReporter")
public Exporter influxdbExporter() throws Exception {
String server = env.getProperty("batch.metrics.export.influxdb.server");
Integer port = env.getProperty("batch.metrics.export.influxdb.port",
Expand Down

0 comments on commit a5096b6

Please sign in to comment.