Skip to content

Instantly share code, notes, and snippets.

@michail-nikolaev
Created December 20, 2012 12:37
Show Gist options
  • Save michail-nikolaev/4345069 to your computer and use it in GitHub Desktop.
Save michail-nikolaev/4345069 to your computer and use it in GitHub Desktop.
Gradle - provided dependency + IDEA
apply plugin: 'java'
apply plugin: 'idea'
subprojects {
configurations { provided }
sourceSets {
main { compileClasspath += configurations.provided }
}
idea {
module {
scopes.PROVIDED.plus += configurations.provided
}
}
}
// and than:
dependencies {
provided 'javax.el:el-api:2.2'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment