Skip to content

Commit

Permalink
Add support for intellij
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Oct 14, 2019
1 parent 5425817 commit 09b7856
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,6 @@
/.project
*.iml

/.idea/*
/.idea/*
*.ipr
*.iws
8 changes: 8 additions & 0 deletions symmetric-assemble/build.gradle
Expand Up @@ -17,6 +17,14 @@ buildscript {
}
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'

task develop {
dependsOn tasks.cleanEclipse, tasks.eclipse, tasks.cleanIdea, tasks.idea
}

task buildScriptDependencies(type: org.gradle.api.tasks.diagnostics.DependencyReportTask) {
configurations = project.buildscript.configurations
}
Expand Down
13 changes: 12 additions & 1 deletion symmetric-assemble/common.gradle
Expand Up @@ -23,6 +23,7 @@ dependencies {
allprojects {

apply plugin: 'eclipse'
apply plugin: 'idea'

group = 'org.jumpmind.symmetric'

Expand Down Expand Up @@ -114,6 +115,16 @@ subprojects { subproject ->
project.natures.remove('org.eclipse.buildship.core.gradleprojectnature')
}
}

idea {
module {
testResourceDirs = []
testSourceDirs = [ file('src/test/java'), file('src/test/groovy')]
resourceDirs += file('src/test/resources')
downloadJavadoc = true
downloadSources = true
}
}

javadoc {
failOnError = false
Expand Down Expand Up @@ -287,7 +298,7 @@ subprojects { subproject ->
}

task develop {
dependsOn tasks.cleanEclipse, tasks.eclipse
dependsOn tasks.cleanEclipse, tasks.eclipse, tasks.cleanIdea, tasks.idea

doLast {
def wstFacetXml = "$projectDir/.settings/org.eclipse.wst.common.project.facet.core.xml"
Expand Down

0 comments on commit 09b7856

Please sign in to comment.