Skip to content

Commit

Permalink
♻️ remove serverUrl ext by profile and set dev and local
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Jul 29, 2024
1 parent 0f15cdf commit 6d133fa
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,13 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

ext {
profile = project.hasProperty('profile') ? project.profile : 'local'
serverUrl = 'http://localhost:8080'

switch (profile) {
case 'dev':
serverUrl = 'https://dev.pengcook.net'
break
case 'prod':
serverUrl = 'https://www.pengcook.net'
break
}
}

test {
useJUnitPlatform()
systemProperty 'spring.profiles.active', 'test'
}

openapi3 {
server = serverUrl
servers = [{ url = "https://dev.pengcook.net" }, { url = "http://localhost:8080" }]
title = 'Pengcook API'
description = 'Pengcook API description'
version = '0.1.0'
Expand Down

0 comments on commit 6d133fa

Please sign in to comment.