build.gradle 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. tasks.withType(JavaCompile) {
  31. options.encoding = "UTF-8"
  32. }
  33. dependencies {
  34. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  35. // kotlin 依赖
  36. // compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: KOTLIN_VERSION
  37. // compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: KOTLIN_VERSION
  38. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  39. // 网络操作依赖
  40. // https://mvnrepository.com/artifact/io.netty/netty-all
  41. compile group: 'io.netty', name: 'netty-all', version: NETTY_VERSION
  42. // https://mvnrepository.com/artifact/io.grpc/grpc-all
  43. //compile group: 'io.grpc', name: 'grpc-all', version: GRPC_VERSION
  44. // https://mvnrepository.com/artifact/com.google.protobuf/protoc
  45. //compile group: 'com.google.protobuf', name: 'protoc', version: PROTOBUF_VERSION
  46. // https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java
  47. compile group: 'com.google.protobuf', name: 'protobuf-java', version: PROTOBUF_VERSION
  48. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  49. // Sybotan依赖
  50. // compile group: 'com.sybotan', name: 'sybotan-kotlin-base', version: SYBOTAN_KOTLIN_VERSION
  51. // compile group: 'com.sybotan', name: 'sybotan-kotlin-database', version: SYBOTAN_KOTLIN_VERSION
  52. // compile group: 'com.sybotan', name: 'sybotan-service-base', version: SYBOTAN_SERVICE_VERSION
  53. // compile group: 'com.sybotan', name: 'sybotan-service-mybatis', version: SYBOTAN_SERVICE_VERSION
  54. // compile group: 'com.sybotan', name: 'sybotan-service-mongo', version: SYBOTAN_SERVICE_VERSION
  55. // https://mvnrepository.com/artifact/org.mybatis/mybatis
  56. compile group: 'org.mybatis', name: 'mybatis', version: '3.5.0'
  57. // https://mvnrepository.com/artifact/org.mybatis/mybatis-guice
  58. compile group: 'org.mybatis', name: 'mybatis-guice', version: '3.10'
  59. // https://mvnrepository.com/artifact/org.yaml/snakeyaml
  60. compile group: 'org.yaml', name: 'snakeyaml', version: '1.24'
  61. // https://mvnrepository.com/artifact/com.google.inject/guice
  62. compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
  63. testCompile group: 'junit', name: 'junit', version: '4.12'
  64. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  65. compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
  66. // https://mvnrepository.com/artifact/org.slf4j/slf4j-api
  67. //compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.26'
  68. // https://mvnrepository.com/artifact/log4j/log4j
  69. compile group: 'log4j', name: 'log4j', version: '1.2.17'
  70. // https://mvnrepository.com/artifact/com.alibaba/fastjson
  71. compile group: 'com.alibaba', name: 'fastjson', version: '1.2.56'
  72. }