67726e / gradle-twirl Goto Github PK
View Code? Open in Web Editor NEWA Gradle plugin for compiling Twirl templates.
License: MIT License
A Gradle plugin for compiling Twirl templates.
License: MIT License
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
Can you build release jars with JDK 1.7 or 1.6?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.