-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (70 loc) · 2.48 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
76
77
78
79
80
81
82
83
84
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath "io.spring.gradle:propdeps-plugin:0.0.10.RELEASE"
}
}
plugins {
id 'java'
//Allows us to not specify versions for dependencies. Pulls in MAVEN BOMs (Bill of Materials)
id 'org.springframework.boot' version '2.1.3.RELEASE'
id "io.spring.dependency-management" version "1.0.7.RELEASE"
}
repositories {
mavenLocal()
mavenCentral()
}
configure(allprojects) {
apply plugin: 'propdeps'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-eclipse'
}
dependencies {
// IDE metadata dependencies
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
// REST dependencies
implementation 'org.springframework.boot:spring-boot-starter-web'
// Actuator dependencies
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// Security dependencies
implementation 'org.springframework.boot:spring-boot-starter-security'
// Database dependencies
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'com.h2database:h2'
implementation 'org.flywaydb:flyway-core'
// Testing dependencies
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.hamcrest:hamcrest-core:1.3'
// GraphQL dependencies
implementation 'com.graphql-java:graphql-java-tools:5.2.4'
implementation 'com.graphql-java:graphql-spring-boot-starter:5.0.2'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
}
// Gradle and IDEA are not playing nice with configuration metadata
task copyConfigurationMetadata(type: Copy) {
from(compileJava) {
include 'META-INF/spring-configuration-metadata.json'
}
into "out/production/classes"
}
compileJava.dependsOn(processResources)
compileJava.finalizedBy(copyConfigurationMetadata)
group = 'com.kubra'
version = '0.0.1-SNAPSHOT'
description = 'spring-boot-demo'
sourceCompatibility = '1.8'
// Configure SpringBoot plugin
bootRun {
// Allows debugging
jvmArgs = [
"-Dspring.output.ansi.enabled=ALWAYS", // Prints in color
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" // Exposes debug port
]
}