For my java plugin I'm using a non-default sourceset. How do I tell jib that's where my source files are? With my gradle file as shown below jib responds with:
> Task :jib FAILED
No classes files were found - did you compile your project?
I see that jib defaults to 'main' as the sourceset name - is there a way to override that? https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java#L96
apply plugin: "java-library"
apply plugin: "com.google.cloud.tools.jib"
sourceSets {
custom {
java {
srcDirs = ["src"]
}
}
}
jib {
to {
image = "foo"
}
}
if I change custom
to main
in the above, it works fine.