build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. group 'com.sagacloud'
  2. version '1.0-SNAPSHOT'
  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. //classpath group: 'com.sybotan', name: 'sybotan-gradle-tools', version: SYBOTAN_KOTLIN_VERSION
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. // maven{url MAVEN_REPO_PUBLIC_URL}
  21. maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
  22. maven { url "https://repo.spring.io/milestone" }
  23. mavenCentral()
  24. jcenter()
  25. }
  26. tasks.withType(Javadoc) {
  27. options{ encoding "UTF-8"
  28. charSet "UTF-8"
  29. links "http://docs.oracle.com/javase/8/docs/api"
  30. }
  31. }
  32. }
  33. //task dokkaAll(type: org.jetbrains.dokka.gradle.DokkaTask) {
  34. // jdkVersion = 8
  35. // outputFormat = "javadoc"
  36. // outputDirectory = "$buildDir/javadoc"
  37. // sourceDirs = files(
  38. // "sybotan-service-core/src/main/kotlin",
  39. // "sybotan-service-hbase/src/main/kotlin",
  40. // "sybotan-service-mybatis/src/main/kotlin")
  41. //}
  42. task clean(type: Delete) {
  43. delete rootProject.buildDir
  44. }