-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.11'
id 'java'
}
lombok {
version = "1.16.20"
sha256 = ""
}
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'
jar {
baseName = 'tosu-backend'
version = '0.1.0'
manifest {
attributes 'Main-Class': 'partio.Application'
}
}
run {
standardInput = System.in
}
bootRun {
//gradle -Dspring.profiles.active=production bootRun
//with this command you can test how program works with production profile
//assuming you have a mock postgresql running with this command
//createdb -h localhost -p 5432 -U postgres tosudb password tosudb;
systemProperties System.properties
}
test {
testLogging.showStandardStreams = false
systemProperties System.getProperties()
}
mainClassName='partio.Application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-web')
runtime('org.springframework.boot:spring-boot-devtools')
runtime('com.h2database:h2')
runtime('org.postgresql:postgresql')
compileOnly('org.projectlombok:lombok')
//json
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
testCompile('org.springframework.boot:spring-boot-starter-test')
// https://mvnrepository.com/artifact/com.google.api-client/google-api-client
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.23.0'
}