Subversion integration with Gradle project

Is it possible to import a subversion project that is also registered as a Gradle project?

While I am able to successfully manage a subversion repository using the Intellij subversion plugin, and while I am able to successfully import a multi-sub-module Gradle project in Intellij, importing a multi-sub-module Gradle project from a Subversion repository does not work.

My work around has been to use 2 separate Idea projects:

  1. Project that manages subversion branching, with root coinciding with the svn root.
  2. Project that imports the Gradle build from a particular active branch, with root above sub-modules.

1st project allows me to utilize subversion commands to create new branches, commit, etc. This project does not recognize my gradle project within the branches/ directory. There are several sub-modules, so individually importing each one is inefficient.

2nd project gets created every time I create a new branch, and allows me to run the source code as a gradle project. It knows nothing about the trunk/ or branches/ directories above it.

Here is my relevant project structure:

 

/proj                                                          -- 1st project root

/proj/trunk/

/proj/branches/

/proj/branches/my-branch

/proj/branches/my-branch/scripts/

/proj/branches/my-branch/java/               --- 2nd project root

/proj/branches/my-branch/java/build.gradle

/proj/branches/my-branch/java/sub-module1/src/main/java/...

/proj/branches/my-branch/java/sub-module2/src/main/java/...  

 

 

How could I (re)configure this usage of Intellij so that I only need 1 project that performs both of the functions listed above (subversion and gradle management).

0

请先登录再写评论。