liberty-bikes/auth-service/build.gradle
2018-05-23 18:11:37 -05:00

33 lines
940 B
Groovy

ext {
httpPort = 8082
httpsPort = 8482
appUrl = "http://localhost:${httpPort}/${war.baseName}"
}
liberty {
server {
name = 'auth-service'
dropins = [war]
bootstrapProperties = ['httpPort': httpPort, 'httpsPort': httpsPort]
configDirectory = file('src/main/liberty/config')
jvmOptions = ['-Dorg.libertybikes.auth.service.github.GitHubOAuthAPI/mp-rest/url=https://github.com',
'-Dorg.libertybikes.auth.service.github.GitHubUserAPI/mp-rest/url=https://api.github.com']
}
}
dependencies {
compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.0'
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.23.0'
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.+'
}
libertyStart.doLast {
println "Application available at: ${appUrl}"
}
task open {
doLast {
java.awt.Desktop.desktop.browse "${appUrl}/token".toURI()
}
}