-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
148 lines (118 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/*
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.mehmetaydin'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
*/
/**
* ROOT build.gradle file:
*/
plugins {
/**
* Buraya yazılan özellikler tüm diğer servislerde etkili olacak.
* Diğerlerinde hiç yazmasak bile geçerli olacak bunlar.
*/
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.6'
id 'application'
id 'java-library'
}
allprojects {
/**
* tüm projelere(root+sub) pluginleri atamak için:
*/
apply from : "${rootDir}/dependencies.gradle"
apply plugin: 'application'
group = 'com.mimaraslan'
version = 'v.1.0.1'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility=JavaVersion.VERSION_17
}
subprojects {
/**
* sadece sub
* Bütün alt projelerimde group ve version adı ile
* diğer özelliklerin aynı olması için:
*/
tasks.withType(JavaCompile).tap {
configureEach {
options.encoding = 'UTF-8'
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java-library'
buildscript {
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${versions.springBoot}")
}
}
}
allprojects {
repositories {
google()
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
}
dependencies {
/**
* bütün projeye yayılacak bağımlıkları yazıyoruz.
* Yazarken libs içindekileri çekiyoruz.
* Bütün projelere entegre gelecek.
*/
implementation libs.springBootWeb
compileOnly libs.lombok
annotationProcessor libs.lombok
implementation libs.swaggerApi
implementation libs.mapStruct
annotationProcessor libs.mapStructProcessor
// implementation libs.postgreSql
implementation libs.jwt
implementation libs.springCloudOpenFeign
implementation libs.springCloudConfigClient
implementation libs.springBootActuator
implementation libs.springBootValidation
implementation libs.micrometerTracingBridgeBrave
implementation libs.zipkinReporterBrave
implementation libs.micrometerObservation
implementation libs.springBootAmqp
implementation libs.springCloudEurekaClient
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}