每个模块生成单独的报告,以便sonar扫描

This commit is contained in:
三丙
2024-11-22 11:11:06 +08:00
parent 3f25aed43a
commit 6f078284ea
4 changed files with 16 additions and 2 deletions

View File

@@ -29,11 +29,13 @@ RUN mkdir -p /var/log/sanbing && \
mkdir -p /var/log/sanbing/accesslog && \
mkdir -p /var/log/sanbing/gc && \
mkdir -p /var/log/sanbing/heapdump && \
chown -R sanbing:sanbing /tmp \
chmod 700 -R /var/log/*
RUN chmod a+x *.sh && mv start.sh /usr/bin
EXPOSE 8080 8080
USER sanbing
ENV APP_LOG_LEVEL=INFO
ENV PROTOCOLS_LOG_LEVEL=INFO

View File

@@ -29,11 +29,13 @@ RUN mkdir -p /var/log/sanbing && \
mkdir -p /var/log/sanbing/accesslog && \
mkdir -p /var/log/sanbing/gc && \
mkdir -p /var/log/sanbing/heapdump && \
chown -R sanbing:sanbing /tmp \
chmod 700 -R /var/log/*
RUN chmod a+x *.sh && mv start.sh /usr/bin
EXPOSE 8081 8081
USER sanbing
ENV PROTOCOLS_LOG_LEVEL=INFO

View File

@@ -47,10 +47,11 @@ public abstract class VersionedCaffeineCache<K extends VersionedCacheKey, V exte
}
}
@SuppressWarnings("unchecked")
private JCPPPair<Long, V> doGet(K key) {
Cache.ValueWrapper source = cache.get(key);
if (source != null && source.get() instanceof JCPPPair pair) {
return pair;
if (source != null && source.get() instanceof JCPPPair<?, ?> pair) {
return (JCPPPair<Long, V>) pair;
}
return null;
}

View File

@@ -482,6 +482,15 @@
<propertyName>itCoverageAgent</propertyName>
</configuration>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>