Skip to content

Commit de460e6

Browse files
authored
ci: adds javadoc and sources jar to repo upload when releasing (#11)
Adding sources and docs jars to distribution. Public repository requirement.
1 parent 4d02a14 commit de460e6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/ci/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ runs:
3535
- name: Build
3636
shell: bash
3737
id: build
38+
run: ${{ inputs.workspace_path }}/gradlew build -p ${{ inputs.workspace_path }}
39+
40+
- name: Build Jar
41+
shell: bash
42+
id: buildjar
3843
run: ${{ inputs.workspace_path }}/gradlew jar -p ${{ inputs.workspace_path }}
3944

4045
- name: Run Tests

lib/java-server-sdk-otel/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,19 @@ dependencies {
3838
implementation "io.opentelemetry:opentelemetry-api:1.2.0"
3939
}
4040

41+
java {
42+
withJavadocJar()
43+
withSourcesJar()
44+
}
45+
4146
publishing {
4247
publications {
4348
mavenJava(MavenPublication) {
44-
from(components["java"])
49+
from components.java
4550

4651
pom {
4752
name.set("LaunchDarkly Java Server Otel Integration")
53+
description.set("This package can be used to integrate OpenTelemetry with the LaunchDarkly Java Server SDK.")
4854
url.set("https://github.com/launchdarkly/java-core")
4955
licenses {
5056
license {

0 commit comments

Comments
 (0)