2020-09-20 18:11:34 +07:00
|
|
|
plugins {
|
2021-03-03 09:29:52 +07:00
|
|
|
id 'org.springframework.boot' version '2.4.3'
|
|
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
2020-09-20 18:11:34 +07:00
|
|
|
id 'java'
|
|
|
|
id 'idea'
|
|
|
|
id 'eclipse'
|
2021-03-19 14:23:37 +07:00
|
|
|
id "com.netflix.dgs.codegen" version "4.2.0"
|
2018-05-10 13:49:55 +07:00
|
|
|
}
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
2018-09-28 00:22:10 +07:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
repositories {
|
2020-09-20 18:11:34 +07:00
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
2021-03-19 14:23:37 +07:00
|
|
|
jcenter()
|
2017-08-08 10:01:06 +07:00
|
|
|
}
|
|
|
|
|
2020-09-20 18:11:34 +07:00
|
|
|
configurations {
|
|
|
|
compileOnly.extendsFrom annotationProcessor
|
2017-08-18 11:09:07 +07:00
|
|
|
}
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
dependencies {
|
2020-09-20 18:11:34 +07:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
|
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
|
2021-03-19 14:23:37 +07:00
|
|
|
implementation "com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter:latest.release"
|
2020-09-20 18:11:34 +07:00
|
|
|
implementation 'org.flywaydb:flyway-core'
|
|
|
|
implementation 'io.jsonwebtoken:jjwt:0.9.1'
|
|
|
|
implementation 'joda-time:joda-time:2.10.6'
|
2021-03-19 14:23:37 +07:00
|
|
|
implementation 'org.xerial:sqlite-jdbc:3.34.0'
|
2020-09-20 18:11:34 +07:00
|
|
|
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
|
|
|
|
testImplementation 'io.rest-assured:rest-assured:3.1.1'
|
|
|
|
testImplementation 'io.rest-assured:spring-mock-mvc:3.1.1'
|
|
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
2021-03-03 09:29:52 +07:00
|
|
|
testImplementation 'org.junit.vintage:junit-vintage-engine'
|
2020-09-20 18:11:34 +07:00
|
|
|
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
|
|
|
|
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:2.1.3'
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2017-08-08 10:01:06 +07:00
|
|
|
}
|
2021-03-19 14:23:37 +07:00
|
|
|
|
|
|
|
generateJava {
|
|
|
|
schemaPaths = ["${projectDir}/src/main/resources/schema"] // List of directories containing schema files
|
|
|
|
packageName = 'io.spring.graphql' // The package name to use to generate sources
|
|
|
|
}
|