Skip to content

Commit a780139

Browse files
committed
2 parents 086e16f + 0efd273 commit a780139

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ServiceStackIDEA/src/main/java/net/servicestack/idea/GradleBuildFileHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ public boolean accept(File dir, String name) {
4545
int count = 0;
4646
for(String line; (line = br.readLine()) != null; ) {
4747
list.add(line);
48-
if(dependenciesStartIndex > -1 && line.startsWith("}")) {
48+
if(dependenciesStartIndex > -1 && line.startsWith("}") && dependenciesEndIndex == -1) {
4949
dependenciesEndIndex = count;
50-
break;
5150
}
52-
if(line.startsWith("dependencies {")) {
51+
if(dependenciesStartIndex == -1 && line.startsWith("dependencies {")) {
5352
dependenciesStartIndex = count;
5453
}
55-
5654
count++;
5755
}
5856
br.close();

0 commit comments

Comments
 (0)