Last active
February 8, 2017 19:12
-
-
Save childnode/12757be70b2895a1eed0 to your computer and use it in GitHub Desktop.
gradle idea plugin workaround for dir-based configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.withType(GenerateIdeaProject) { | |
doLast { | |
copy { | |
from '.' | |
into '.idea/' | |
include '*.ipr' | |
rename { "modules.xml" } | |
} | |
project.delete "${project.name}.ipr" | |
} | |
} | |
tasks.withType(GenerateIdeaWorkspace) { | |
doLast { | |
copy { | |
from '.' | |
into '.idea/' | |
include '*.iws' | |
rename { "workspace.xml" } | |
} | |
project.delete "${project.name}.iws" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see discussion / Feature Request in -(https://issues.gradle.org/browse/GRADLE-1041)- gradle/gradle#1366
thx to arhan's idea: https://issues.gradle.org/browse/GRADLE-1041?focusedCommentId=17661&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17661
this (should) "fix(es)"
ℹ️ should work with any gradle
📍 nice idea, but not seems to work, it should also be much easier to define it via outputFile
see simplified try #2 ➡️ https://gist.github.com/childnode/275dced0705b61381626
further related issues: