@@ -6,25 +6,25 @@ crossScalaVersions += "2.11.12"
6
6
7
7
enablePlugins(ProtobufPlugin , ProtobufTestPlugin )
8
8
9
- version in PBT .ProtobufConfig := (version in ProtobufConfig ).value
9
+ ( PBT .ProtobufConfig / version) := (ProtobufConfig / version ).value
10
10
11
- libraryDependencies += " com.google.protobuf" % " protobuf-java" % (version in ProtobufConfig ).value % ProtobufConfig .name
11
+ libraryDependencies += " com.google.protobuf" % " protobuf-java" % (ProtobufConfig / version ).value % ProtobufConfig .name
12
12
13
- libraryDependencies += " com.google.protobuf" % " protobuf-java" % (version in PBT .ProtobufConfig ).value % PBT .ProtobufConfig .name
13
+ libraryDependencies += " com.google.protobuf" % " protobuf-java" % (PBT .ProtobufConfig / version ).value % PBT .ProtobufConfig .name
14
14
15
- PBT .protobufRunProtoc in PBT .ProtobufConfig := (protobufRunProtoc in ProtobufConfig ).value
15
+ ( PBT .ProtobufConfig / PBT .protobufRunProtoc) := (ProtobufConfig / protobufRunProtoc ).value
16
16
17
- excludeFilter in ProtobufConfig := " test1.proto"
17
+ ProtobufConfig / excludeFilter := " test1.proto"
18
18
19
- excludeFilter in PBT .ProtobufConfig := " test3.proto"
19
+ PBT .ProtobufConfig / excludeFilter := " test3.proto"
20
20
21
- unmanagedResourceDirectories in Compile += (sourceDirectory in ProtobufConfig ).value
21
+ ( Compile / unmanagedResourceDirectories) += (ProtobufConfig / sourceDirectory ).value
22
22
23
- unmanagedResourceDirectories in Test += (sourceDirectory in PBT .ProtobufConfig ).value
23
+ ( Test / unmanagedResourceDirectories) += (PBT .ProtobufConfig / sourceDirectory ).value
24
24
25
25
TaskKey [Unit ](" checkJar" ) := {
26
- val compileJar = (packageBin in Compile ).value
27
- val testJar = (packageBin in Test ).value
26
+ val compileJar = (Compile / packageBin ).value
27
+ val testJar = (Test / packageBin ).value
28
28
29
29
IO .withTemporaryDirectory{ dir =>
30
30
val files = IO .unzip(compileJar, dir, " *.proto" )
@@ -37,4 +37,4 @@ TaskKey[Unit]("checkJar") := {
37
37
}
38
38
39
39
// https://github.com/sbt/sbt-protobuf/issues/37
40
- mainClass in compile := Some (" whatever" )
40
+ compile / mainClass := Some (" whatever" )
0 commit comments