This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates an object for the given {@link Class}. | |
* | |
* @param fieldName The name of the field. | |
* @param clazz The {@link Class} type to create. | |
* | |
* @return A new instance for the given {@link Class}. | |
* | |
* @throws InstantiationException If this Class represents an abstract class, an interface, an array class, a | |
* primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
springBootVersion = '1.3.3.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.moowork.gradle.node.task.NodeTask | |
task webpack(type: NodeTask, dependsOn: 'npmInstall') { | |
script = project.file('node_modules/.bin/webpack') | |
} | |
processResources.dependsOn 'webpack' | |
clean.delete << file('src/main/webapp/dist') |