build.gradle 740 B

12345678910111213141516171819202122232425262728293031
  1. subprojects {
  2. apply plugin: 'java'
  3. apply plugin: 'idea'
  4. sourceCompatibility = 1.8
  5. targetCompatibility = 1.8
  6. repositories {
  7. // 阿里云公共仓库
  8. maven { url "https://maven.aliyun.com/repository/public" }
  9. // 阿里云 Gradle 插件仓库
  10. maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
  11. // 官方仓库作为备用
  12. mavenCentral()
  13. }
  14. // configurations {
  15. // all {
  16. // exclude group: 'ch.qos.logback'
  17. // }
  18. // }
  19. task copyAllDependencies(type: Copy) {
  20. from configurations.compileClasspath
  21. into "${buildDir}/libs/lib"
  22. }
  23. tasks.withType(JavaCompile) {
  24. options.encoding = "UTF-8"
  25. }
  26. }