2018-11-20 09:00:32 -05:00
|
|
|
plugins {
|
|
|
|
id 'distribution'
|
2018-11-20 10:26:26 -05:00
|
|
|
id 'maven-publish'
|
2020-10-07 09:02:26 -04:00
|
|
|
id 'com.github.node-gradle.node' version '2.2.4'
|
2018-11-20 09:00:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'io.spring.docresources'
|
|
|
|
description = 'Spring Documentation Resources'
|
|
|
|
|
2018-12-04 16:23:06 -05:00
|
|
|
node {
|
2020-10-07 09:02:26 -04:00
|
|
|
version = '14.12.0'
|
|
|
|
npmVersion = '6.14.8'
|
2018-12-04 16:23:06 -05:00
|
|
|
download = true
|
|
|
|
}
|
|
|
|
|
2020-04-03 16:06:13 -04:00
|
|
|
npm_run_build.dependsOn(npm_install)
|
|
|
|
distZip.dependsOn npm_run_build
|
|
|
|
|
2018-11-20 09:00:32 -05:00
|
|
|
distributions {
|
|
|
|
main {
|
2020-10-07 09:02:26 -04:00
|
|
|
distributionBaseName = 'spring-doc-resources'
|
2018-11-20 09:00:32 -05:00
|
|
|
contents {
|
2018-11-20 10:26:26 -05:00
|
|
|
from { "${buildDir}/dist" }
|
|
|
|
into '/'
|
2018-11-20 09:00:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-20 10:26:26 -05:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
artifact distZip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|