Skip to content

Instantly share code, notes, and snippets.

View Blastman's full-sized avatar

Jeff Torson Blastman

View GitHub Profile
@Blastman
Blastman / DtoTest.CreateObject.java
Last active April 19, 2022 06:40
Testing DTOs and Transfer Objects
/**
* 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
@Blastman
Blastman / build.gradle
Last active June 22, 2018 08:36
NodeJS using Gradle
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
@Blastman
Blastman / build-webpack.groovy
Last active April 20, 2016 17:57
webpack - react
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')