|
| 1 | +plugins { |
| 2 | + id 'java' |
| 3 | + id 'org.springframework.boot' version '3.4.1' |
| 4 | + id 'io.spring.dependency-management' version '1.1.7' |
| 5 | +} |
| 6 | + |
| 7 | +group = 'clap' |
| 8 | +version = '0.0.1-SNAPSHOT' |
| 9 | + |
| 10 | +java { |
| 11 | + toolchain { |
| 12 | + languageVersion = JavaLanguageVersion.of(17) |
| 13 | + } |
| 14 | +} |
| 15 | + |
| 16 | +configurations { |
| 17 | + compileOnly { |
| 18 | + extendsFrom annotationProcessor |
| 19 | + } |
| 20 | +} |
| 21 | + |
| 22 | +repositories { |
| 23 | + mavenCentral() |
| 24 | +} |
| 25 | + |
| 26 | +dependencies { |
| 27 | + implementation 'org.springframework.boot:spring-boot-starter-web' |
| 28 | + |
| 29 | + // lombok |
| 30 | + compileOnly 'org.projectlombok:lombok' |
| 31 | + annotationProcessor 'org.projectlombok:lombok' |
| 32 | + |
| 33 | + // validator |
| 34 | + implementation 'org.springframework.boot:spring-boot-starter-validation:3.4.1' |
| 35 | + |
| 36 | + // Spring data JPA |
| 37 | + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 38 | + |
| 39 | + //QueryDsl |
| 40 | + implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' |
| 41 | + annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" |
| 42 | + annotationProcessor "jakarta.annotation:jakarta.annotation-api" |
| 43 | + annotationProcessor "jakarta.persistence:jakarta.persistence-api" |
| 44 | + |
| 45 | + // Flyway |
| 46 | + implementation 'org.flywaydb:flyway-core' |
| 47 | + implementation 'org.flywaydb:flyway-mysql' |
| 48 | + |
| 49 | + // h2 db |
| 50 | + runtimeOnly 'com.h2database:h2' |
| 51 | + |
| 52 | + // mysql |
| 53 | + runtimeOnly 'com.mysql:mysql-connector-j' |
| 54 | + testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 55 | + |
| 56 | + // Redis |
| 57 | + implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 58 | + |
| 59 | + // Spring Security |
| 60 | + //implementation 'org.springframework.boot:spring-boot-starter-security' |
| 61 | + // testImplementation 'org.springframework.security:spring-security-test' |
| 62 | + |
| 63 | + // MapStruct |
| 64 | + implementation 'org.mapstruct:mapstruct:1.5.3.Final' |
| 65 | + annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final' |
| 66 | + |
| 67 | + // Junit |
| 68 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
| 69 | + |
| 70 | + // Json |
| 71 | + implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.1' |
| 72 | + implementation 'com.googlecode.json-simple:json-simple:1.1.1' |
| 73 | + implementation 'com.google.code.gson:gson:2.11.0' |
| 74 | + |
| 75 | + // Swagger |
| 76 | + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0' |
| 77 | + |
| 78 | + // Email Sender |
| 79 | + implementation 'org.springframework.boot:spring-boot-starter-mail' |
| 80 | + |
| 81 | + // Spring aop |
| 82 | + implementation 'org.springframework.boot:spring-boot-starter-aop' |
| 83 | + |
| 84 | +} |
| 85 | + |
| 86 | +tasks.named('test') { |
| 87 | + useJUnitPlatform() |
| 88 | +} |
0 commit comments