build.gradle 1.3 KB

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