import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel plugins { id 'java' id 'java-library' id 'com.fr.common' version '1.0-SNAPSHOT' } ext { frVersion = "" outputPath = "build" ignoreTestFailureSetting = true languageLevelSetting = 1.8 } applyGlobalConfigPathIfExist() if (versions.frVersion) { frVersion = versions.frVersion } def frDevVersion = "DEV" + frVersion dependencies { compile project(':design-i18n-report') compile project(':design-i18n-chart') } allprojects { apply plugin: 'java' apply plugin: 'java-library' apply plugin: 'idea' group 'com.fr.design' version frDevVersion sourceCompatibility = languageLevelSetting targetCompatibility = languageLevelSetting tasks.withType(JavaCompile) { options.encoding = "UTF-8" } repositories { mavenLocal() } idea { module { inheritOutputDirs = false outputDir = file(outputPath +"/classes") testOutputDir = file(outputPath +"/test-classes") languageLevel = new IdeaLanguageLevel(sourceCompatibility) targetBytecodeVersion = targetCompatibility } } }