Skip to content
This repository was archived by the owner on Mar 21, 2019. It is now read-only.

Commit e0c5b7e

Browse files
committed
Compiling plugin with Java 1.7
1 parent ccf94d0 commit e0c5b7e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

plugin.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
siteUrl='https://github.com/manupsunny/gauge-gradle-plugin'
22
gitUrl='https://github.com/manupsunny/gauge-gradle-plugin.git'
33

4-
version=1.4.3
4+
version=1.4.4
55
name=gauge-gradle-plugin
66
description='Gradle plugin for Gauge, the open source test automation tool developed by ThoughtWorks.'
77

plugin/src/main/java/com/thoughtworks/gauge/gradle/util/PropertyManager.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import com.thoughtworks.gauge.gradle.GaugeExtension;
2323
import org.gradle.api.Project;
24+
import org.gradle.api.artifacts.Configuration;
2425

2526
import java.io.File;
2627
import java.util.Arrays;
@@ -114,17 +115,18 @@ private void setClasspath() {
114115
}
115116

116117
private void addRuntimeClasspaths(HashSet<String> classPaths) {
117-
project.getConfigurations().stream()
118-
.filter(configuration -> configuration.getName()
119-
.toLowerCase().endsWith(RUNTIME))
120-
.forEach(configuration -> {
121-
String fileList = configuration.getAsFileTree().getAsPath();
122-
classPaths.addAll(Arrays.asList(fileList.split(File.pathSeparator)));
123-
});
118+
for (Configuration configuration : project.getConfigurations()) {
119+
if(configuration.getName().toLowerCase().endsWith(RUNTIME)){
120+
String fileList = configuration.getAsFileTree().getAsPath();
121+
classPaths.addAll(Arrays.asList(fileList.split(File.pathSeparator)));
122+
}
123+
}
124124
}
125125

126126
private void addBuildClasspaths(HashSet<String> classPaths) {
127127
File classFolders = new File(project.getBuildDir().getAbsolutePath() + CLASSES);
128-
Arrays.stream(classFolders.listFiles()).forEach(file -> classPaths.add(file.getAbsolutePath()));
128+
for (File file : classFolders.listFiles()){
129+
classPaths.add(file.getAbsolutePath());
130+
}
129131
}
130132
}

0 commit comments

Comments
 (0)