mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
PL-5838 Use jars for web content
This commit is contained in:
parent
b2ba6af1b1
commit
7016318c3f
25
build.gradle
25
build.gradle
@ -478,10 +478,6 @@ configure(webModule) {
|
||||
|
||||
task enhance(type: CubaEnhancing)
|
||||
|
||||
jar {
|
||||
from sourceSets.main.allJava
|
||||
}
|
||||
|
||||
task buildScssThemes(type: CubaWebScssThemeCreation) {
|
||||
themes = ['halo', 'havana']
|
||||
// compress = true
|
||||
@ -518,29 +514,18 @@ configure(webModule) {
|
||||
exclude '**/web.xml'
|
||||
}
|
||||
|
||||
def webOutDir = file("$buildDir/web")
|
||||
task webArchive(dependsOn: buildScssThemes, type: Zip) {
|
||||
from file('web')
|
||||
from webOutDir
|
||||
exclude '**/web.xml', '**/app.properties'
|
||||
classifier = 'web'
|
||||
jar.dependsOn buildScssThemes
|
||||
jar {
|
||||
with copySpec {
|
||||
from sourceSets.main.allJava
|
||||
include "com/haulmont/cuba/web/toolkit/ui/client/**"
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives webArchive
|
||||
}
|
||||
|
||||
task deploy(dependsOn: assemble, type: CubaDeployment) {
|
||||
appName = 'cuba'
|
||||
appJars('cuba-global', 'cuba-client', 'cuba-gui', 'cuba-web', 'cuba-web-auth')
|
||||
}
|
||||
|
||||
deploy << {
|
||||
copy {
|
||||
from "$buildDir/web"
|
||||
into "$cuba.tomcat.dir/webapps/cuba"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configure(webModuleThemesModule) {
|
||||
|
Loading…
Reference in New Issue
Block a user