@@ -56,7 +56,7 @@ val schemaUrl = "https://opentelemetry.io/schemas/$semanticConventionsVersion"
56
56
57
57
val downloadSemanticConventions by tasks.registering(Download ::class ) {
58
58
src(semanticConventionsRepoZip)
59
- dest(" $buildDir /semantic-conventions/semantic-conventions.zip" )
59
+ dest(" $buildDir /semantic-conventions- ${semanticConventionsVersion} /semantic-conventions.zip" )
60
60
overwrite(false )
61
61
}
62
62
@@ -69,7 +69,7 @@ val unzipConfigurationSchema by tasks.registering(Copy::class) {
69
69
val pathParts = path.split(" /" )
70
70
path = pathParts.subList(1 , pathParts.size).joinToString(" /" )
71
71
})
72
- into(" $buildDir /semantic-conventions/" )
72
+ into(" $buildDir /semantic-conventions- ${semanticConventionsVersion} /" )
73
73
}
74
74
75
75
fun generateTask (taskName : String , incubating : Boolean ) {
@@ -88,7 +88,7 @@ fun generateTask(taskName: String, incubating: Boolean) {
88
88
setArgs(listOf (
89
89
" run" ,
90
90
" --rm" ,
91
- " -v" , " $buildDir /semantic-conventions/model:/source" ,
91
+ " -v" , " $buildDir /semantic-conventions- ${semanticConventionsVersion} /model:/source" ,
92
92
" -v" , " $projectDir /buildscripts/templates:/templates" ,
93
93
" -v" , " $projectDir /$outputDir :/output" ,
94
94
" otel/semconvgen:$generatorVersion " ,
0 commit comments