build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
  19. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  20. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  21. }
  22. implementation("org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.1")
  23. implementation("org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16")
  24. //implementation("com.oracle:ojdbc6:11.2.0.3")
  25. // SWAGGER
  26. implementation 'io.springfox:springfox-swagger2:2.6.1'
  27. implementation 'io.springfox:springfox-swagger-ui:2.6.1'
  28. implementation 'io.springfox:springfox-swagger-ui:2.6.1'
  29. // https://mvnrepository.com/artifact/org.projectlombok/lombok
  30. providedCompile group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
  31. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  32. }
  33. // jar 생성 추가
  34. // gradlew --build 실행
  35. // 추후 Jenkins 에서 자동으로 jar, Docker Image 생성에 대한 환경설정 필요
  36. bootJar {
  37. launchScript()
  38. }
  39. test {
  40. useJUnitPlatform()
  41. }