37 lines
575 B
Groovy
37 lines
575 B
Groovy
plugins {
|
|
id 'distribution'
|
|
id 'maven-publish'
|
|
id 'com.moowork.node' version '1.2.0'
|
|
id "com.moowork.gulp" version '1.2.0'
|
|
}
|
|
|
|
group = 'io.spring.docresources'
|
|
description = 'Spring Documentation Resources'
|
|
|
|
node {
|
|
version = '11.2.0'
|
|
npmVersion = '6.4.1'
|
|
download = true
|
|
}
|
|
|
|
distributions {
|
|
main {
|
|
baseName = 'spring-doc-resources'
|
|
contents {
|
|
from { "${buildDir}/dist" }
|
|
into '/'
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
artifact distZip
|
|
}
|
|
}
|
|
}
|
|
|
|
gulp_default.dependsOn 'npmInstall', 'installGulp'
|
|
distZip.dependsOn gulp_default
|