-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.39 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
buildscript {
ext {
springBootVersion = '2.3.1.RELEASE'
springDependencyManagement = '1.0.9.RELEASE'
lombokVersion = '1.18.12'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("io.spring.gradle:dependency-management-plugin:${springDependencyManagement}")
}
}
plugins {
id 'maven'
id 'java'
id 'idea'
id 'application'
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// Annotation
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// Compile
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-web-services'
compileOnly "org.projectlombok:lombok:${lombokVersion}"
// Annotation Processors
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// Test compile
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
}
application {
mainClassName = "org.example.MySpringBootApplication"
}