-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathbuild.gradle
46 lines (41 loc) · 1.56 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Note: this setup is special to be able to run in CI using the akka-grpc build
// for a regular gradle config for consumer projects look at docs and quickstarts
buildscript {
ext {
if (!System.getProperty('akka.grpc.project.version')) {
throw new GradleException("System property `akka.grpc.project.version` is not provided. Use -Dakka.grpc.project.version=\$VERSION.")
}
akkaGrpcVersion = System.getProperty('akka.grpc.project.version')
}
repositories {
mavenLocal()
gradlePluginPortal()
maven {
url "https://repo.akka.io/maven"
}
}
}
plugins {
id 'com.lightbend.akka.grpc.gradle' version "${akkaGrpcVersion}"
}
akkaGrpc {
serverPowerApis = true // This isn't default
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://repo.akka.io/maven"
}
}
def scalaVersion = org.gradle.util.VersionNumber.parse(System.getenv("TRAVIS_SCALA_VERSION") ?: "2.13")
def scalaBinaryVersion = "${scalaVersion.major}.${scalaVersion.minor}"
def akkaVersion = "2.9.1"
dependencies {
implementation group: 'ch.megard', name: "akka-http-cors_${scalaBinaryVersion}", version: '1.1.3'
implementation "com.typesafe.akka:akka-pki_${scalaBinaryVersion}:${akkaVersion}"
testImplementation "com.typesafe.akka:akka-stream-testkit_${scalaBinaryVersion}:${akkaVersion}"
testImplementation "com.typesafe.akka:akka-actor-testkit-typed_${scalaBinaryVersion}:${akkaVersion}"
testImplementation "org.scalatest:scalatest_${scalaBinaryVersion}:3.2.12"
testImplementation "org.scalatestplus:junit-4-12_${scalaBinaryVersion}:3.2.2.0"
}