docker version stuff

This commit is contained in:
Anthony Stirling
2023-08-27 19:58:20 +01:00
parent d850d026ed
commit b58fd2022a
15 changed files with 28 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ repositories {
sourceSets {
main {
java {
if (System.getenv('ENABLE_SECURITY') == 'false') {
if (System.getenv('DOCKER_ENABLE_SECURITY') == 'false') {
exclude 'stirling/software/SPDF/config/security/**'
exclude 'stirling/software/SPDF/controller/api/UserController.java'
exclude 'stirling/software/SPDF/controller/web/AccountWebController.java'
@@ -67,7 +67,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.1.2'
if (System.getenv('ENABLE_SECURITY') != 'false') {
if (System.getenv('DOCKER_ENABLE_SECURITY') != 'false') {
implementation 'org.springframework.boot:spring-boot-starter-security:3.1.2'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.1.2.RELEASE'
implementation "org.springframework.boot:spring-boot-starter-data-jpa"