parent
148876c4e5
commit
8d7f823f3e
|
|
@ -45,6 +45,17 @@ tasks.named('test') {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||||
|
archiveClassifier = 'sources'
|
||||||
|
archiveBaseName = 'openfeature'
|
||||||
|
from sourceSets.main.allSource
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives sourcesJar
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
jar.archiveBaseName = 'openfeature'
|
jar.archiveBaseName = 'openfeature'
|
||||||
|
|
||||||
def repo_url = System.getenv("REPOSITORY_URL")
|
def repo_url = System.getenv("REPOSITORY_URL")
|
||||||
|
|
@ -57,6 +68,10 @@ publishing {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
artifactId="javasdk"
|
artifactId="javasdk"
|
||||||
from components.java
|
from components.java
|
||||||
|
artifacts {
|
||||||
|
archives sourcesJar
|
||||||
|
archives jar
|
||||||
|
}
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
name = 'OpenFeature SDK'
|
name = 'OpenFeature SDK'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue