76 lines
2.2 KiB
Groovy
76 lines
2.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.2.4'
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|
}
|
|
|
|
group = 'com.krrishg'
|
|
version = '0.1.0'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext {
|
|
jjwtVersion = '0.12.5'
|
|
testcontainersVersion = '1.19.7'
|
|
springdocVersion = '2.3.0'
|
|
jgitVersion = '6.9.0.202403050737-r'
|
|
awsSdkVersion = '2.24.13'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
|
|
|
implementation "com.bucket4j:bucket4j-core:8.10.1"
|
|
|
|
implementation "io.jsonwebtoken:jjwt-api:${jjwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-impl:${jjwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jjwtVersion}"
|
|
|
|
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}"
|
|
implementation "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
|
|
implementation "software.amazon.awssdk:s3:${awsSdkVersion}"
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testRuntimeOnly 'com.h2database:h2'
|
|
testImplementation "org.testcontainers:testcontainers:${testcontainersVersion}"
|
|
testImplementation "org.testcontainers:postgresql:${testcontainersVersion}"
|
|
testImplementation "org.testcontainers:junit-jupiter:${testcontainersVersion}"
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
bootJar {
|
|
archiveFileName = 'indie-backend.jar'
|
|
}
|