36 lines
548 B
Groovy
36 lines
548 B
Groovy
plugins {
|
|
id 'distribution'
|
|
id 'maven-publish'
|
|
id 'com.github.node-gradle.node' version '2.2.4'
|
|
}
|
|
|
|
group = 'io.spring.docresources'
|
|
description = 'Spring Documentation Resources'
|
|
|
|
node {
|
|
version = '14.12.0'
|
|
npmVersion = '6.14.8'
|
|
download = true
|
|
}
|
|
|
|
npm_run_build.dependsOn(npm_install)
|
|
distZip.dependsOn npm_run_build
|
|
|
|
distributions {
|
|
main {
|
|
distributionBaseName = 'spring-doc-resources'
|
|
contents {
|
|
from { "${buildDir}/dist" }
|
|
into '/'
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
artifact distZip
|
|
}
|
|
}
|
|
}
|