-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (92 loc) · 3.21 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
buildscript {
ext {
springBootVersion = '3.0.1'
dependencyManagementVersion = '1.1.0.RELEASE'
MYSQL_CONNECTOR_VERSION = "8.0.11"
POSTGRESQL_CONNECTOR_VERSION = "42.5.3"
FIREBASE_ADMIN_VERSION = "8.0.0"
QUERYDSL_PLUGIN_VERSION = "1.0.10"
QUERYDSL_VERSION = "5.0.0"
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:${dependencyManagementVersion}"
classpath "mysql:mysql-connector-java:${MYSQL_CONNECTOR_VERSION}"
classpath "org.postgresql:postgresql:${POSTGRESQL_CONNECTOR_VERSION}"
classpath "com.google.firebase:firebase-admin:${FIREBASE_ADMIN_VERSION}"
}
}
plugins {
id "com.ewerk.gradle.plugins.querydsl" version "${QUERYDSL_PLUGIN_VERSION}"
}
subprojects {
group 'org.pickly'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'groovy'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
// Java Version을 의미한다. 뒤의 숫자의 경우 자바 버전을 의미
sourceCompatibility = 17
jacoco {
toolVersion = '0.8.8'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
jar {
enabled = false
}
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.springframework.boot:spring-boot-starter"
compileOnly 'org.projectlombok:lombok'
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
annotationProcessor 'org.projectlombok:lombok'
implementation "org.springframework.boot:spring-boot-starter-web"
implementation 'org.springframework.boot:spring-boot-starter-test'
// compileJava시 javax.annotation.meta.When 오류 해결
implementation 'com.google.code.findbugs:jsr305:3.0.2'
testAnnotationProcessor "org.projectlombok:lombok"
// querydsl
implementation "com.querydsl:querydsl-jpa:${QUERYDSL_VERSION}:jakarta"
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// spock
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
testImplementation('org.spockframework:spock-core:2.4-M1-groovy-4.0') {
exclude module: 'groovy-all'
}
testImplementation('org.spockframework:spock-spring:2.4-M1-groovy-4.0')
}
test {
useJUnitPlatform()
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
}
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}