build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. group 'com.persagy.server'
  2. version '2.0.10'
  3. buildscript {
  4. repositories {
  5. maven{url "http://47.93.132.139:8081/nexus/content/repositories/persagy/"}
  6. maven{url MAVEN_REPO_PUBLIC_URL}
  7. maven{url "http://maven.aliyun.com/nexus/content/groups/public/"}
  8. mavenCentral()
  9. jcenter()
  10. }
  11. dependencies {
  12. classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: SPRING_BOOT_VERSION
  13. classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: KOTLIN_VERSION
  14. classpath group: 'org.jetbrains.dokka', name: 'dokka-gradle-plugin', version: DOKKA_VERSION
  15. classpath group: 'com.google.protobuf', name: 'protobuf-gradle-plugin', version: PROTOBUF_GRADLE_VERSION
  16. // ssh插件, 用于部署
  17. classpath 'org.hidetake:gradle-ssh-plugin:2.10.1'
  18. classpath 'org.geotools:gt-main:25.2'
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. maven{url "http://47.93.132.139:8081/nexus/content/repositories/persagy/"}
  24. maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
  25. maven{
  26. url MAVEN_REPO_PUBLIC_URL
  27. credentials {
  28. username = NEXUS_USERNAME
  29. password = NEXUS_PASSWORD
  30. }
  31. }
  32. maven { url "https://repo.spring.io/milestone" }
  33. mavenCentral()
  34. jcenter()
  35. }
  36. tasks.withType(Javadoc) {
  37. options{ encoding "UTF-8"
  38. charSet "UTF-8"
  39. links "http://docs.oracle.com/javase/8/docs/api"
  40. }
  41. }
  42. }