Skip to content

Commit a0e8fdf

Browse files
Improve proto dir check
1 parent 7bd1a46 commit a0e8fdf

File tree

1 file changed

+2
-2
lines changed
  • buildSrc/src/main/kotlin/io/spine/gradle/publish

1 file changed

+2
-2
lines changed

buildSrc/src/main/kotlin/io/spine/gradle/publish/ProtoExts.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import org.gradle.api.tasks.bundling.Jar
4040
fun Project.hasProto(): Boolean {
4141
val protoSources = protoSources()
4242
val result = protoSources.any {
43-
it.isDirectory
44-
&& it.exists()
43+
it.exists()
44+
&& it.isDirectory
4545
&& it.listFiles()?.isNotEmpty() ?: false
4646
}
4747
return result

0 commit comments

Comments
 (0)