Giter Club home page Giter Club logo

gradle-twirl's People

Contributors

67726e avatar nacmacfeegle avatar valery1707 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gradle-twirl's Issues

Custom source directory

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "us.hexcoder:gradle-twirl:1.1.0"
    }
}

apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'twirl'
apply plugin: 'application'

sourceCompatibility = 1.8
targetCompatibility = 1.8

sourceSets.main.java.srcDirs = [] // See: http://forums.gradle.org/gradle/topics/how_to_compile_a_java_class_that_depends_on_a_scala_class_in_gradle
sourceSets.main.scala.srcDir 'src/main/java'
sourceSets.main.resources.srcDir 'src/main/resources'
sourceSets.test.java.srcDir 'src/test/java'
sourceSets.test.resources.srcDir 'src/test/resources'

mainClassName = 'App'

repositories {
    mavenLocal()
    mavenCentral()
}

dependencies {
    compile 'org.scala-lang:scala-library:2.11.8'
    compile "us.hexcoder:gradle-twirl:1.1.0"
}

twirl {
    sourceDirectory = "src/main/java/views"
    targetDirectory = "build/generated-sources/main/twirl"
    imports = ["java.lang._", "java.util._", "scala.collection.JavaConversions._", "scala.collection.JavaConverters._"]
    charset = "UTF8"
}

code is not generated

Multi-Project build fails missing test/twirl

Running gradle build from the root of a multi-project build seems to fail on the compileTestTwirl since the src/test/twirl directory is missing for the given subproject. Probably just need to silently ignore this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.