Issue 1038: Fix the deprecation warnings in the strongbox-data-service module
The issue is caused because the setPassword method in GroupConfig class is deprecated.
Replaced the code with the 2-parameter constructor call.
@@ -6,6 +6,7 @@ import com.hazelcast.config.Config;
import com.hazelcast.config.EvictionConfig;
import com.hazelcast.config.EvictionConfig.MaxSizePolicy;
import com.hazelcast.config.EvictionPolicy;
+import com.hazelcast.config.GroupConfig;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.MaxSizeConfig;
import com.hazelcast.config.NearCacheConfig;
@@ -68,7 +69,7 @@ public class HazelcastConfiguration
.addMapConfig(newDefaultMapConfig(CacheName.Repository.REMOTE_REPOSITORY_ALIVENESS))
.addMapConfig(newDefaultMapConfig(CacheName.Artifact.TAGS))
.addMapConfig(authenticationCacheConfig(CacheName.User.AUTHENTICATIONS));
- config.getGroupConfig().setName("strongbox").setPassword("password");
+ config.setGroupConfig(new GroupConfig("strongbox", "password"));
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
return config;
