build.gradle

来源:互联网 发布:mac 把自己改为管理员 编辑:程序博客网 时间:2024/05/29 04:58
subprojects {    apply plugin: 'java'    apply plugin: 'eclipse'        version = rootProject.novatarTargetVersionWithDt        [compileJava, javadoc, compileTestJava]*.options*.encoding = 'UTF-8'        repositories {        mavenCentral()        mavenLocal()    }        build.onlyIf { file(projectDir.absolutePath + '/src/main/java').exists() ||        file(projectDir.absolutePath + '/src/main/resources').exists()}        eclipse {       jdt {           sourceCompatibility = 1.8           targetCompatibility = 1.8       }       classpath {           file {              whenMerged { classpath ->                classpath.entries.find { entry -> entry.kind == 'con' }.path = rootProject.eclipseJreContainer              }           }       }    }}

0 0
原创粉丝点击