12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- subprojects {
- apply plugin: 'java'
- apply plugin: 'idea'
-
- java {
- toolchain {
- languageVersion.set(JavaLanguageVersion.of(8))
- }
- }
- repositories {
-
- mavenLocal()
-
- maven { url "https://maven.aliyun.com/repository/public" }
-
- maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
-
- mavenCentral()
- }
-
- tasks.withType(JavaCompile).configureEach {
- options.encoding = 'UTF-8'
- options.incremental = true
- }
-
- tasks.register('copyAllDependencies', Copy) {
- description = 'Copies all runtime dependencies to the libs directory'
- group = 'build'
- from(configurations.runtimeClasspath)
- into("${buildDir}/libs/lib")
- }
-
- gradle.projectsEvaluated {
- tasks.withType(JavaCompile).configureEach {
- options.fork = true
- }
- }
- }
|