build.gradle 556 B

123456789101112131415161718192021222324252627
  1. subprojects {
  2. apply plugin: 'java'
  3. apply plugin: 'idea'
  4. sourceCompatibility = 1.8
  5. targetCompatibility = 1.8
  6. repositories {
  7. maven { url "https://maven.aliyun.com/repository/public" }
  8. mavenCentral()
  9. }
  10. // configurations {
  11. // all {
  12. // exclude group: 'ch.qos.logback'
  13. // }
  14. // }
  15. task copyAllDependencies(type: Copy) {
  16. from configurations.compileClasspath
  17. into "${buildDir}/libs/lib"
  18. }
  19. tasks.withType(JavaCompile) {
  20. options.encoding = "UTF-8"
  21. }
  22. }