build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id 'org.springframework.boot' version '2.2.6.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.9.RELEASE'
  4. id 'java'
  5. id 'war'
  6. }
  7. group = 'com.dbs'
  8. version = '0.0.1-SNAPSHOT'
  9. sourceCompatibility = '1.8'
  10. repositories {
  11. mavenCentral()
  12. //maven { url "https://code.lds.org/nexus/content/groups/main-repo"} /* oracle ref url*/
  13. // maven { url "http://maven.icm.edu.pl/artifactory/repo/"} /* oracle ref url*/
  14. }
  15. dependencies {
  16. implementation fileTree(dir: 'lib', include: ['*.jar'])
  17. implementation 'org.springframework.boot:spring-boot-starter-web'
  18. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
  19. // implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '1.3.0.RELEASE'
  20. providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
  21. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  22. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  23. }
  24. implementation("org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.1")
  25. implementation("org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16")
  26. // SWAGGER
  27. implementation 'io.springfox:springfox-swagger2:2.6.1'
  28. implementation 'io.springfox:springfox-swagger-ui:2.6.1'
  29. implementation 'io.springfox:springfox-swagger-ui:2.6.1'
  30. // https://mvnrepository.com/artifact/org.projectlombok/lombok
  31. providedCompile group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
  32. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  33. }
  34. // jar 생성 추가
  35. // gradlew --build 실행
  36. // 추후 Jenkins 에서 자동으로 jar, Docker Image 생성에 대한 환경설정 필요
  37. bootJar {
  38. launchScript()
  39. }
  40. test {
  41. useJUnitPlatform()
  42. }