From 8d7f823f3ef9db8153d0f7635c1e67bc36a7ea48 Mon Sep 17 00:00:00 2001 From: Justin Abrahms Date: Fri, 13 May 2022 10:28:26 -0700 Subject: [PATCH] Build sources jar Fixes #3 --- lib/build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/build.gradle b/lib/build.gradle index 084776b5..45f560c4 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -45,6 +45,17 @@ tasks.named('test') { useJUnitPlatform() } +task sourcesJar(type: Jar, dependsOn: classes) { + archiveClassifier = 'sources' + archiveBaseName = 'openfeature' + from sourceSets.main.allSource +} + +artifacts { + archives sourcesJar +} + + jar.archiveBaseName = 'openfeature' def repo_url = System.getenv("REPOSITORY_URL") @@ -57,6 +68,10 @@ publishing { maven(MavenPublication) { artifactId="javasdk" from components.java + artifacts { + archives sourcesJar + archives jar + } pom { name = 'OpenFeature SDK'