diff --git a/src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractFeatureTask.groovy b/src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractFeatureTask.groovy index e2b0a2d7..6617ed43 100644 --- a/src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractFeatureTask.groovy +++ b/src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractFeatureTask.groovy @@ -195,6 +195,7 @@ public class AbstractFeatureTask extends AbstractServerTask { return featuresToInstall } + @Internal protected ServerFeatureUtil getServerFeatureUtil() { if (servUtil == null) { servUtil = new ServerFeatureTaskUtil(); diff --git a/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy b/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy index 33f1be03..f35bb407 100644 --- a/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy +++ b/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy @@ -277,7 +277,7 @@ class GenerateFeaturesTask extends AbstractFeatureTask { private getEEVersion(Object project) { String eeVersion = null - project.configurations.compile.allDependencies.each { + project.configurations.compileClasspath.allDependencies.each { dependency -> if (dependency.group.equals("javax") && dependency.name.equals("javaee-api")) { if (dependency.version.startsWith("8.")) { @@ -298,7 +298,7 @@ class GenerateFeaturesTask extends AbstractFeatureTask { private getMPVersion(Object project) { String mpVersion = null - project.configurations.compile.allDependencies.each { + project.configurations.compileClasspath.allDependencies.each { if (it.group.equals("org.eclipse.microprofile") && it.name.equals("microprofile")) { if (it.version.startsWith("1")) {