Skip to content

Commit 8d7f823

Browse files
committed
Build sources jar
Fixes #3
1 parent 148876c commit 8d7f823

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ tasks.named('test') {
4545
useJUnitPlatform()
4646
}
4747

48+
task sourcesJar(type: Jar, dependsOn: classes) {
49+
archiveClassifier = 'sources'
50+
archiveBaseName = 'openfeature'
51+
from sourceSets.main.allSource
52+
}
53+
54+
artifacts {
55+
archives sourcesJar
56+
}
57+
58+
4859
jar.archiveBaseName = 'openfeature'
4960

5061
def repo_url = System.getenv("REPOSITORY_URL")
@@ -57,6 +68,10 @@ publishing {
5768
maven(MavenPublication) {
5869
artifactId="javasdk"
5970
from components.java
71+
artifacts {
72+
archives sourcesJar
73+
archives jar
74+
}
6075

6176
pom {
6277
name = 'OpenFeature SDK'

0 commit comments

Comments
 (0)