ossez-doc-resources/build.gradle

36 lines
548 B
Groovy
Raw Normal View History

2018-11-20 09:00:32 -05:00
plugins {
id 'distribution'
id 'maven-publish'
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'
node {
version = '14.12.0'
npmVersion = '6.14.8'
download = true
}
npm_run_build.dependsOn(npm_install)
distZip.dependsOn npm_run_build
2018-11-20 09:00:32 -05:00
distributions {
main {
distributionBaseName = 'spring-doc-resources'
2018-11-20 09:00:32 -05:00
contents {
from { "${buildDir}/dist" }
into '/'
2018-11-20 09:00:32 -05:00
}
}
}
publishing {
publications {
maven(MavenPublication) {
artifact distZip
}
}
}