34 lines
689 B
Groovy
34 lines
689 B
Groovy
plugins {
|
|
id 'org.jetbrains.kotlin.plugin.spring'
|
|
id 'org.springframework.boot'
|
|
id 'org.hibernate.orm'
|
|
id 'org.jetbrains.kotlin.plugin.jpa'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
runtimeOnly 'com.h2database:h2'
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
}
|
|
|
|
hibernate {
|
|
enhancement {
|
|
enableAssociationManagement = true
|
|
}
|
|
}
|
|
|
|
allOpen {
|
|
annotation 'jakarta.persistence.Entity'
|
|
annotation 'jakarta.persistence.MappedSuperclass'
|
|
annotation 'jakarta.persistence.Embeddable'
|
|
}
|
|
|
|
// 라이브러리 모듈이므로 bootJar 비활성화
|
|
bootJar {
|
|
enabled = false
|
|
}
|
|
|
|
jar {
|
|
enabled = true
|
|
}
|