Created
June 26, 2014 12:02
-
-
Save idursun/94264c3f67aef34af2c4 to your computer and use it in GitHub Desktop.
Gradle file to copy package files into resources
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
apply plugin: 'java' | |
task webjar(type: Jar, dependsOn: "jar") { | |
from(fileTree("dist")) { | |
into "META-INF/resources" | |
} | |
} | |
task ('copyAssets', type: Copy) { | |
from(file('dist/public')) | |
into('../src/main/resources/public') | |
} | |
task ('copyHtml', type: Copy) { | |
from(file('dist/views')) | |
into('../src/main/resources/public/views') | |
} | |
task('copyResources', dependsOn: ['copyAssets', 'copyHtml']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment