build.gradle 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. group rootProject.group
  2. version rootProject.version
  3. apply plugin: 'java'
  4. //apply plugin: 'org.jetbrains.dokka'
  5. apply plugin: 'maven'
  6. apply plugin: 'com.google.protobuf'
  7. sourceCompatibility = JVM_TARGET
  8. //compileKotlin {
  9. // kotlinOptions.jvmTarget = JVM_TARGET
  10. //}
  11. //compileTestKotlin {
  12. // kotlinOptions.jvmTarget = JVM_TARGET
  13. //}
  14. protobuf {
  15. generatedFilesBaseDir = "src"
  16. protoc {
  17. artifact = "com.google.protobuf:protoc:3.7.0"
  18. }
  19. // plugins {
  20. // grpc {
  21. // artifact = 'io.grpc:protoc-gen-grpc-java:1.19.0'
  22. // }
  23. // }
  24. // generateProtoTasks {
  25. // all()*.plugins {
  26. // grpc {}
  27. // }
  28. // }
  29. }
  30. dependencies {
  31. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  32. // kotlin 依赖
  33. // compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: KOTLIN_VERSION
  34. // compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: KOTLIN_VERSION
  35. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  36. // 网络操作依赖
  37. // https://mvnrepository.com/artifact/io.netty/netty-all
  38. compile group: 'io.netty', name: 'netty-all', version: NETTY_VERSION
  39. // https://mvnrepository.com/artifact/io.grpc/grpc-all
  40. //compile group: 'io.grpc', name: 'grpc-all', version: GRPC_VERSION
  41. // https://mvnrepository.com/artifact/com.google.protobuf/protoc
  42. //compile group: 'com.google.protobuf', name: 'protoc', version: PROTOBUF_VERSION
  43. // https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java
  44. compile group: 'com.google.protobuf', name: 'protobuf-java', version: PROTOBUF_VERSION
  45. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  46. // Sybotan依赖
  47. // compile group: 'com.sybotan', name: 'sybotan-kotlin-base', version: SYBOTAN_KOTLIN_VERSION
  48. // compile group: 'com.sybotan', name: 'sybotan-kotlin-database', version: SYBOTAN_KOTLIN_VERSION
  49. // compile group: 'com.sybotan', name: 'sybotan-service-base', version: SYBOTAN_SERVICE_VERSION
  50. // compile group: 'com.sybotan', name: 'sybotan-service-mybatis', version: SYBOTAN_SERVICE_VERSION
  51. // compile group: 'com.sybotan', name: 'sybotan-service-mongo', version: SYBOTAN_SERVICE_VERSION
  52. // https://mvnrepository.com/artifact/org.mybatis/mybatis
  53. compile group: 'org.mybatis', name: 'mybatis', version: '3.5.0'
  54. // https://mvnrepository.com/artifact/org.mybatis/mybatis-guice
  55. compile group: 'org.mybatis', name: 'mybatis-guice', version: '3.10'
  56. // https://mvnrepository.com/artifact/org.yaml/snakeyaml
  57. compile group: 'org.yaml', name: 'snakeyaml', version: '1.24'
  58. // https://mvnrepository.com/artifact/com.google.inject/guice
  59. compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
  60. testCompile group: 'junit', name: 'junit', version: '4.12'
  61. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  62. compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
  63. }