mirror of
https://github.com/Nezumi-2711/spring-boot-ecommerce.git
synced 2026-09-22 13:48:34 +00:00
46 lines
1.0 KiB
Groovy
46 lines
1.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.0.1'
|
|
id 'io.spring.dependency-management' version '1.1.0'
|
|
}
|
|
|
|
group = 'com.luv2code'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '17'
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-maven-plugin', version: '3.0.0'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
|
|
compileOnly 'org.projectlombok:lombok'
|
|
runtimeOnly 'com.mysql:mysql-connector-j'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'com.luv2code.ecommerce.SpringBootEcommerceApplication'
|
|
)
|
|
}
|
|
}
|