Skip to content

Commit

Permalink
build: Fix publication
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed May 13, 2024
1 parent b9ac7bd commit c5c04d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions buildSrc/src/main/kotlin/convention.publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ mavenPublishing {
coordinates(artifactId = project.name)

pom {
name = project.name
description = project.description

setGitHubProject("osipxd/encrypted-datastore")
licenses {
mit()
Expand All @@ -38,4 +41,11 @@ plugins.withId("org.gradle.java-test-fixtures") {
val feature = component.features.getByName(TestFixturesSupport.TEST_FIXTURES_FEATURE_NAME)
component.withVariantsFromConfiguration(feature.apiElementsConfiguration) { skip() }
component.withVariantsFromConfiguration(feature.runtimeElementsConfiguration) { skip() }

// Workaround to not publish test fixtures sources added by com.vanniktech.maven.publish plugin
// TODO: Remove as soon as https://github.com/vanniktech/gradle-maven-publish-plugin/issues/779 closed
afterEvaluate {
val configuration = project.configurations[feature.sourceSet.sourcesElementsConfigurationName]
component.withVariantsFromConfiguration(configuration) { skip() }
}
}

0 comments on commit c5c04d8

Please sign in to comment.