Skip to content

Commit 4a9758a

Browse files
committed
Downgrade shadow and cache2k (for java 1.8)
1 parent d9c26d0 commit 4a9758a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
// id "com.github.onslip.gradle-one-jar" version "1.0.5"
1414

1515
// Shadow plugin used to build the shade jar
16-
id 'com.github.johnrengelman.plugin-shadow' version '2.0.3'
16+
id 'com.github.johnrengelman.shadow' version '2.0.4'
1717

1818
// jacoco code coverage for test
1919
id 'jacoco'
@@ -101,8 +101,8 @@ dependencies {
101101
api "net.sourceforge.jtds:jtds:1.3.1" // for mssql
102102

103103
// Cache2k implementation
104-
api "org.cache2k:cache2k-api:2.6.1.Final"
105-
api "org.cache2k:cache2k-core:2.6.1.Final"
104+
api "org.cache2k:cache2k-api:1.2.4.Final"
105+
api "org.cache2k:cache2k-core:1.2.4.Final"
106106

107107
// Hazelcast
108108
api "com.hazelcast:hazelcast-all:4.0.2"

src/main/java/picoded/dstack/struct/cache/StructCacheUtil.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ static <V> Cache<String, V> setupCache2kMap(Cache2kBuilder<String,V> builder, St
6464
//
6565
int capacity = config.getInt("capacity", 10000);
6666

67-
// Disable monitoring statistics by default
68-
boolean monitoring = config.getBoolean("monitoring", false);
67+
// // Disable monitoring statistics by default
68+
// boolean monitoring = config.getBoolean("monitoring", false);
6969

7070
// Optimize for high concurrency mode, not recommended unless its
7171
// >100k size, and 8 vCPU that is constantly under heavy load
@@ -88,10 +88,10 @@ static <V> Cache<String, V> setupCache2kMap(Cache2kBuilder<String,V> builder, St
8888
// Configure cache name and capacity
8989
builder = builder.name(name).entryCapacity(capacity);
9090

91-
// Disable monitoring
92-
if (monitoring == false) {
93-
builder = builder.disableMonitoring(true);
94-
}
91+
// // Disable monitoring
92+
// if (monitoring == false) {
93+
// builder = builder.disableMonitoring(true);
94+
// }
9595
// boostConcurrency if configured
9696
if (boostConcurrency == true) {
9797
builder = builder.boostConcurrency(true);

0 commit comments

Comments
 (0)