-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : tweak archunit rules as per latest changes
- Loading branch information
1 parent
dd05c0e
commit f744ce7
Showing
7 changed files
with
86 additions
and
37 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
boot-api-archunit-sample/src/main/java/com/example/archunit/config/Initializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
package com.example.archunit.config; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
@Slf4j | ||
public class Initializer implements CommandLineRunner { | ||
|
||
private static final Logger LOGGER = LoggerFactory.getLogger(Initializer.class); | ||
|
||
private final ApplicationProperties properties; | ||
|
||
@Override | ||
public void run(String... args) { | ||
log.info("Running Initializer....."); | ||
LOGGER.info("Running Initializer....."); | ||
} | ||
} |
24 changes: 19 additions & 5 deletions
24
boot-api-archunit-sample/src/main/java/com/example/archunit/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
package com.example.archunit.config; | ||
|
||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.servers.Server; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Contact; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.servers.Server; | ||
import java.util.List; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
@OpenAPIDefinition(info = @Info(title = "boot-api-archunit-sample", version = "v1"), servers = @Server(url = "/")) | ||
public class SwaggerConfig {} | ||
public class SwaggerConfig { | ||
|
||
@Bean | ||
OpenAPI openApi() { | ||
return new OpenAPI() | ||
.info(new Info() | ||
.title("boot-api-archunit-sample") | ||
.description("Client Service APIs") | ||
.version("v1.0.0") | ||
.contact(new Contact().name("Raja Kolli").email("[email protected]"))) | ||
.servers(List.of(new Server().url("/"))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters