Added intellij plugin to gradle build.
This commit is contained in:
parent
6894544122
commit
ed447f63f6
32
build.gradle
32
build.gradle
|
@ -1,5 +1,14 @@
|
||||||
apply plugin: 'base'
|
apply plugin: 'base'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenRepo urls: 'http://gradle.artifactoryonline.com/gradle/plugins'
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath "org.gradle.plugins:gradle-idea-plugin:0.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
version = '3.1.0.CI-SNAPSHOT'
|
version = '3.1.0.CI-SNAPSHOT'
|
||||||
releaseBuild = version.endsWith('RELEASE')
|
releaseBuild = version.endsWith('RELEASE')
|
||||||
|
@ -18,6 +27,29 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply plugin: 'org.gradle.idea'
|
||||||
|
ideaModule {
|
||||||
|
downloadJavadoc=false
|
||||||
|
excludeDirs.add(buildDir)
|
||||||
|
}
|
||||||
|
def config = configurations.findByName('testRuntime')
|
||||||
|
if (!config) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ideaModule {
|
||||||
|
excludeDirs.add(file('.gradle'))
|
||||||
|
excludeDirs.add(file('buildSrc/build'))
|
||||||
|
excludeDirs.add(file('buildSrc/.gradle'))
|
||||||
|
}
|
||||||
|
|
||||||
|
ideaProject {
|
||||||
|
wildcards += ['?*.gradle']
|
||||||
|
javaVersion = '1.6'
|
||||||
|
}
|
||||||
|
|
||||||
configure(javaProjects) {
|
configure(javaProjects) {
|
||||||
apply from: "$rootDir/gradle/javaprojects.gradle"
|
apply from: "$rootDir/gradle/javaprojects.gradle"
|
||||||
apply from: "$rootDir/gradle/maven.gradle"
|
apply from: "$rootDir/gradle/maven.gradle"
|
||||||
|
|
Loading…
Reference in New Issue