Andre's Blog

20161228 Gradle Buildsrc Needs To Have Buildscript For Dependencies

[GRADLE]

If your Groovy or Java Class in buildSrc/src/... depends on external JAR files, you need to have a build.gradle script reflecting these dependencies placed in buildSrc, or you get such error messages :

    amos$ gradle build
    :buildSrc:compileJava
    /Users/amos/gitrepo/blog/ideaprojects/JsonWriter/buildSrc/src/main/java/com/wartbar/db/model/CILog.java:3: error: package javax.persistence does not exist
    import javax.persistence.Temporal;

Select where to go ...


The Blog
My Technical Blogs
Projects
Blogs Of Friends
RSS
CV/About
Me