-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'elastic/main' into inferred-spans-upstream
# Conflicts: # inferred-spans/build.gradle.kts
- Loading branch information
Showing
41 changed files
with
592 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id("java") | ||
id("elastic-otel.java-conventions") | ||
} | ||
|
||
dependencies { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
java | ||
id("elastic-otel.java-conventions") | ||
} | ||
|
||
dependencies { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import java.io.FileInputStream | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
import java.nio.file.StandardCopyOption | ||
|
||
plugins { | ||
alias(catalog.plugins.nexusPublish) | ||
} | ||
|
||
val versionProperties = java.util.Properties() | ||
versionProperties.load(FileInputStream(file("version.properties"))) | ||
|
||
group = "co.elastic.otel" | ||
version = versionProperties.get("version").toString() | ||
description = "Elastic Distribution of OpenTelemetry Java" | ||
|
||
defaultTasks("agent:assemble") | ||
|
||
subprojects { | ||
group = rootProject.group | ||
version = rootProject.version | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype() | ||
} | ||
} | ||
|
||
tasks { | ||
|
||
register("currentVersion") { | ||
doLast { | ||
println(project.version) | ||
} | ||
} | ||
|
||
register("setVersion") { | ||
doLast { | ||
val versionFile = file("version.properties") | ||
versionFile.writeText("version=${project.property("newVersion")}\n") | ||
} | ||
} | ||
|
||
register("setNextVersion") { | ||
doLast { | ||
val semVer = "\\d+\\.\\d+\\.\\d+".toRegex().find(version.toString())!!.value; | ||
val nums = semVer.split('.'); | ||
|
||
val versionFile = file("version.properties") | ||
versionFile.writeText("version=${nums[0]}.${nums[1]}.${nums[2].toInt() + 1}-SNAPSHOT\n") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 51 additions & 4 deletions
55
buildSrc/src/main/kotlin/elastic-otel.java-conventions.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.