Skip to content

Commit

Permalink
eventuate-clients#16: Define a CommonSwaggerAutoConfigure @configuration
Browse files Browse the repository at this point in the history
 class that's @ConditionalOnBean(EventuateSwaggerConfig)
  • Loading branch information
dartartem committed May 27, 2021
1 parent 5f6b5aa commit d369884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.eventuate.util.spring.swagger;

import com.fasterxml.classmate.TypeResolver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.ResponseEntity;
Expand All @@ -11,6 +12,7 @@

@Configuration
@EnableSwagger2
@ConditionalOnBean(EventuateSwaggerConfig.class)
public class CommonSwaggerConfiguration {

@Bean
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ eventuateMavenRepoUrl=file:///Users/cer/.m2/testdeploy,https://dl.bintray.com/ev
springBootVersion=2.2.6.RELEASE
swaggerUiVersion=3.17.1
eventuatePluginsGradleVersion=0.8.0.RELEASE
version=0.12.0-SNAPSHOT
version=0.13.0-SNAPSHOT

0 comments on commit d369884

Please sign in to comment.