Skip to content

Instantly share code, notes, and snippets.

@almosr
Created January 18, 2016 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almosr/469c5ce876aa32f1c3f5 to your computer and use it in GitHub Desktop.
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
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