Add helper task for extra setup after opening in IntelliJ IDEA
This task serves a similar role to the "afterEclipseBuildshipImport" task used with Eclipse. It should only be necessary to build this task once: in a freshly checked-out tree, just after opening it for the first time in IntelliJ IDEA. Ideally this extra setup task would be triggered automatically using the "Tasks Activation" feature of IntelliJ IDEA's Gradle support. Unfortunately, "Tasks Activation" settings are recorded in ".idea/workspace.xml", which is used for non-revision-tracked personal settings.
This commit is contained in:
parent
7c2189849f
commit
3d9e4d23d8
|
@ -79,6 +79,7 @@ subprojects { subproject ->
|
|||
jar.manifest.from('META-INF/MANIFEST.MF')
|
||||
|
||||
task afterEclipseBuildshipImport(dependsOn: processTestResources)
|
||||
task afterIntelliJIDEAOpen
|
||||
|
||||
test {
|
||||
include '**/*Test.class'
|
||||
|
|
|
@ -6,6 +6,7 @@ plugins {
|
|||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
afterIntelliJIDEAOpen.dependsOn jarTest
|
||||
|
||||
sourceSets.test.java.srcDirs = ['harness-src/java']
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ clean.dependsOn cleanCopyDxJar
|
|||
|
||||
compileTestJava.dependsOn copyDxJar
|
||||
afterEclipseBuildshipImport.dependsOn copyDxJar
|
||||
afterIntelliJIDEAOpen.dependsOn copyDxJar
|
||||
|
||||
task copyAndroidJar(type: Sync, dependsOn: installAndroidSdk) {
|
||||
from "${installAndroidSdk.destinationDir}/platforms/${installAndroidSdk.components['platforms']}/android.jar"
|
||||
|
|
Loading…
Reference in New Issue