blob: 8f5cee7e58c30171bf9c54c8aa71d07ee5611e0f [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
plugins {
id 'scala'
id 'org.apache.pekko.grpc.gradle'
}
pekkoGrpc {
generateClient = true
generateServer = true
serverPowerApis = true // This isn't default
includeStdTypes = true // This isn't default
extraGenerators = [ ]
}
repositories {
mavenLocal()
}
def scalaFullVersion = "2.13.18"
def scalaVersion = org.gradle.util.VersionNumber.parse(scalaFullVersion)
def scalaBinaryVersion = "${scalaVersion.major}.${scalaVersion.minor}"
dependencies {
implementation "org.apache.pekko:pekko-http-cors_${scalaBinaryVersion}:1.3.0"
implementation "org.scala-lang:scala-library:${scalaFullVersion}"
testImplementation "org.apache.pekko:pekko-stream-testkit_${scalaBinaryVersion}:2.0.0-M1"
testImplementation "org.scalatest:scalatest_${scalaBinaryVersion}:3.2.19"
testImplementation "org.scalatestplus:junit-4-13_${scalaBinaryVersion}:3.2.19.0"
}
tasks.withType(Copy).configureEach {
duplicatesStrategy = DuplicatesStrategy.WARN
}