cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Copy dependencies with server type to tomcatDir/shared/lib for local deployment #141

Closed andreysubbotin closed 4 years ago

andreysubbotin commented 4 years ago

Environment

soraksh commented 4 years ago

QA: check that server type dependincies now copied to tomcatDir/shared/lib dir instead of tomcatDir/lib dir by deploying to local tomcat. For example, add logstash dependency as server dependency (see original issue):

configure(globalModule) {
    dependencies {
        server('net.logstash.logback:logstash-logback-encoder:6.3')
       ...
    }
}

And then check if application actually works with logstash by adding it to logback file:

...
    <appender name="Logstash" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
        <destination>logstash:4560</destination>
        <!-- encoder is required -->
        <encoder class="net.logstash.logback.encoder.LogstashEncoder" />
    </appender>
...