Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Created August 18, 2020 00:29
Show Gist options
  • Save sentientmonkey/e1f21c13260dac6faa22c8448607a16d to your computer and use it in GitHub Desktop.
Save sentientmonkey/e1f21c13260dac6faa22c8448607a16d to your computer and use it in GitHub Desktop.
plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
runtimeOnly 'org.postgresql:postgresql'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
bootRun.environment([
"WELCOME_MESSAGE": "hello",
"SPRING_DATASOURCE_URL": "jdbc:postgresql://localhost:5432/tracker_dev?user=tracker&password=password",
])
test.environment([
"WELCOME_MESSAGE": "Hello from test",
"SPRING_DATASOURCE_URL": "jdbc:postgresql://localhost:5432/tracker_test?user=tracker&password=password",
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment