mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
PL-5838 Use jars for web content
This commit is contained in:
parent
b2ba6af1b1
commit
7016318c3f
27
build.gradle
27
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'
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives webArchive
|
||||
jar.dependsOn buildScssThemes
|
||||
jar {
|
||||
with copySpec {
|
||||
from sourceSets.main.allJava
|
||||
include "com/haulmont/cuba/web/toolkit/ui/client/**"
|
||||
}
|
||||
}
|
||||
|
||||
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