Unleash


Resources for unleash

Unleash

pom.xml

		<dependencies>
			<dependency>
				<plugin>
					<groupId>io.getunleash</groupId>
					<artifactId>unleash-client-java</artifactId>
					<version>9.1.0</version>
				</plugin>
			</dependency>
		</dependencies>

Code examples

UnleashConfig config = UnleashConfig.builder()
        .appName("my.java-app") // name of your running environment (e.g. activeProfile)
        .instanceId("InstanceID_FROM_GUTLAB")
        .unleashAPI("API_URL_FROM_GITLAB")
        .build();

Unleash unleash = new DefaultUnleash(config);
if(unleash.isEnabled("AwesomeFeature")) {
  //do some magic
} else {
  //do old boring stuff
}

Other Resources