Soramitsu Kotlin Library
ref: http://authenticatorapi.com
- Configure GitHub credential
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/sovannarithcheav/authenticator-api-client")
credentials {
username = System.getenv("GIT_PUBLISH_USER")
password = System.getenv("GIT_PUBLISH_PASSWORD")
}
}
}
- Add dependency
dependencies {
implementation("com.sovannarith.info:authentication-client:${property("authentication-client-version")}")
}
- Bean
@Configuration
@EnableFeignClients(clients = [AuthenticationClient::class])
@ComponentScan(basePackageClasses = [IAuthenticatorService::class])
class Config {}