12345678910111213141516171819202122232425262728293031 |
- subprojects {
- apply plugin: 'java'
- apply plugin: 'idea'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- repositories {
- // 阿里云公共仓库
- maven { url "https://maven.aliyun.com/repository/public" }
- // 阿里云 Gradle 插件仓库
- maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
- // 官方仓库作为备用
- mavenCentral()
- }
- // configurations {
- // all {
- // exclude group: 'ch.qos.logback'
- // }
- // }
- task copyAllDependencies(type: Copy) {
- from configurations.compileClasspath
- into "${buildDir}/libs/lib"
- }
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-8"
- }
- }
|