Created
January 18, 2016 20:35
-
-
Save almosr/469c5ce876aa32f1c3f5 to your computer and use it in GitHub Desktop.
Generating IDEA workspace files with language level setting is not working from this gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
group '...' | |
version '1.0-SNAPSHOT' | |
apply plugin: 'java' | |
apply plugin: 'idea' | |
repositories { | |
mavenCentral() | |
} | |
allprojects { | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
} | |
idea { | |
project { | |
jdkName = sourceCompatibility | |
languageLevel = sourceCompatibility | |
} | |
module { | |
excludeDirs -= file("$buildDir") | |
sourceDirs += file("$buildDir/generated/source/...") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment