rafael-brandao / scalabuff-gradle-plugin

Mozilla Public License 2.0
3 stars 2 forks source link

README.md's scalabuff src dir setting is incorrect #5

Open xanderdunn opened 8 years ago

xanderdunn commented 8 years ago

The README shows this:

scalabuff {
    sourceSets {
        proto {
            srcDir = 'src/proto'
        }
    }
}

However, this will give the error:

> No such property: srcDir for class: com.github.rafaelbrandao.gradle.scalabuff.domain.ScalabuffSourceSet
  Possible solutions: srcDirs

So, correct it:

    scalabuff {
        sourceSets {
            proto {
                srcDirs = 'src/proto'
            }
        }
    }

This will give the error:

A problem occurred evaluating root project 'odin-core'.
> Cannot cast object 'src/proto' with class 'java.lang.String' to class 'java.util.Set'

How do I define a Java Set in a build.gradle file?

nmdguerreiro commented 8 years ago

Try:

sourceSets {
        proto {
            srcDirs = ['src/proto']
        }
    }