Skip to content

Commit c8df521

Browse files
committed
Enhancing opamp proto download
1 parent 578e121 commit c8df521

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opamp-client/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies {
4949
val opampReleaseInfo = tasks.register<Download>("opampLastReleaseInfo") {
5050
group = "opamp"
5151
src("https://api.github.com/repos/open-telemetry/opamp-spec/releases/latest")
52-
dest(project.layout.buildDirectory.file("$name/release.json"))
52+
dest(project.layout.buildDirectory.file("opamp/release.json"))
5353
}
5454

5555
tasks.register<DownloadOpampProtos>("opampProtoDownload", download).configure {
@@ -58,7 +58,7 @@ tasks.register<DownloadOpampProtos>("opampProtoDownload", download).configure {
5858
lastReleaseInfoJson.set {
5959
opampReleaseInfo.get().dest
6060
}
61-
outputProtosDir.set(project.layout.buildDirectory.dir(name))
61+
outputProtosDir.set(project.layout.buildDirectory.dir("opamp/protos"))
6262
downloadedZipFile.set(project.layout.buildDirectory.file("intermediate/$name/release.zip"))
6363
}
6464

@@ -90,7 +90,7 @@ abstract class DownloadOpampProtos @Inject constructor(
9090
setIncludes(listOf("**/*.proto"))
9191
}
9292
fileOps.sync {
93-
from(protos)
93+
from(protos.files)
9494
into(outputProtosDir)
9595
}
9696
}

0 commit comments

Comments
 (0)