From f2ff680e3c8b1a22ab00917033634bab3fc23d4b Mon Sep 17 00:00:00 2001 From: Rob Spieldenner Date: Thu, 21 Sep 2017 12:49:46 -0700 Subject: [PATCH] Gradle 3 still uses SourceSetObject.getClassesDir instead of SourceSetObject.getClassesDirs --- .../groovy/org/akhikhl/gretty/SpringBootMainClassFinder.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gretty/src/main/groovy/org/akhikhl/gretty/SpringBootMainClassFinder.groovy b/libs/gretty/src/main/groovy/org/akhikhl/gretty/SpringBootMainClassFinder.groovy index b60c677a1..7536215cd 100644 --- a/libs/gretty/src/main/groovy/org/akhikhl/gretty/SpringBootMainClassFinder.groovy +++ b/libs/gretty/src/main/groovy/org/akhikhl/gretty/SpringBootMainClassFinder.groovy @@ -17,7 +17,7 @@ import org.gradle.api.Project class SpringBootMainClassFinder { protected static Iterable getClassesDirs(Project project) { - if(project.gradle.gradleVersion.startsWith('1.') || project.gradle.gradleVersion.startsWith('2.')) + if(project.gradle.gradleVersion.startsWith('1.') || project.gradle.gradleVersion.startsWith('2.') || project.gradle.gradleVersion.startsWith('3.')) return [ project.sourceSets.main.output.classesDir ] project.sourceSets.main.output.classesDirs }