comparison core/build.gradle @ 30:2dfba21cd879

sync
author cin
date Wed, 27 Jun 2018 02:46:14 +0300
parents acdcdf1a8d21
children 1dc2fd263b90
comparison
equal deleted inserted replaced
29:acdcdf1a8d21 30:2dfba21cd879
1 1 println "version: $project.version $foo"
2 println "version: $version"
3 2
4 task prepare(type: Copy) { 3 task prepare(type: Copy) {
5 from('src') 4 from('src/js')
6 from('.') { 5 from('.') {
7 include 'readme.md', 'license', 'history.md', 'package.json' 6 include 'readme.md', 'license', 'history.md', 'package.json'
8 } 7 }
9 into(buildDir) 8 into(buildDir)
9
10 doLast {
11 exec {
12 commandLine 'npm', 'version', version
13 }
14 }
10 } 15 }
11 16
12 task build(dependsOn: prepare) { 17 task build(dependsOn: prepare) {
13 } 18 }
14 19