build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
  3. id "org.springframework.boot" version "2.1.4.RELEASE" apply false
  4. }
  5. allprojects {
  6. group 'com.usoftchina.uas'
  7. version '2.0.0-SNAPSHOT'
  8. }
  9. subprojects { Project subproject ->
  10. if (subproject.name in ["framework", "applications", "runtime", "scm", "cloud", "plm", "cost", "assert", "fa", "sys", "cust", "pm", "ec"]) {
  11. return
  12. }
  13. apply plugin: 'java'
  14. apply plugin: 'idea'
  15. apply plugin: 'maven'
  16. apply plugin: 'io.spring.dependency-management'
  17. sourceCompatibility = 1.8
  18. targetCompatibility = 1.8
  19. [compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8'
  20. ext {
  21. springBootVersion = '2.1.4.RELEASE'
  22. springCloudVersion = 'Greenwich.SR1'
  23. // dependencies
  24. alibabaThreadLocal = 'com.alibaba:transmittable-thread-local:2.10.2'
  25. mysqlConnector = 'mysql:mysql-connector-java:6.0.6'
  26. ojdbc = 'com.oracle:ojdbc6:11.2.0'
  27. mybatisSpringBoot = 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.0.1'
  28. pageHelperSpringBoot = 'com.github.pagehelper:pagehelper-spring-boot-starter:1.2.7'
  29. gson = 'com.google.code.gson:gson:2.8.5'
  30. guava = 'com.google.guava:guava:28.0-jre'
  31. }
  32. repositories {
  33. mavenLocal()
  34. mavenCentral()
  35. maven { url "http://repo.spring.io/libs-milestone" }
  36. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  37. maven { url "https://oss.sonatype.org/content/repositories/snapshots"}
  38. }
  39. dependencyManagement {
  40. imports {
  41. mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
  42. }
  43. }
  44. uploadArchives {
  45. repositories {
  46. mavenDeployer {
  47. repository(url: "http://maven.ubtob.com/artifactory/libs-snapshot-local") {
  48. authentication(userName: "yingp", password: "111111")
  49. }
  50. }
  51. }
  52. }.dependsOn build
  53. sourceSets {
  54. main {
  55. resources {
  56. srcDirs = ["src/main/java", "src/main/resources"]
  57. }
  58. }
  59. }
  60. }