project/ProjectExtensions.scala (9 lines of code) (raw):
/*
* 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.
*/
package org.apache.pekko.grpc
import sbt._
// helper to define projects that test the plugin infrastructure
object ProjectExtensions {
implicit class AddPluginTest(project: Project) {
/** Add settings to test the sbt-plugin in-process */
def pluginTestingSettings: Project =
project.dependsOn(ProjectRef(file("."), "runtime")).enablePlugins(
org.apache.pekko.grpc.build.ReflectiveCodeGen)
}
}