-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (40 loc) · 1.09 KB
/
build.gradle
File metadata and controls
48 lines (40 loc) · 1.09 KB
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
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'com.monkey'
version = '1.0.0'
java {
sourceCompatibility = '17'
targetCompatibility = '17'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.2.4'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.2.4'
implementation 'org.springframework.boot:spring-boot-starter-web:3.2.4'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.0'
implementation 'org.redisson:redisson-spring-boot-starter:3.23.2'
implementation 'org.springframework.kafka:spring-kafka:3.3.5'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
// 순수 라이브러리용 JAR -> 활성화
jar {
enabled = true
archiveBaseName.set("common-module")
archiveVersion.set("${version}") // Jar 파일명 예시: common-module-1.0.0.jar
}
// pom.xml 추가로 생성
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
tasks.withType(Test) {
enabled = false
}