-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparation for Maven Central release (#22)
* update build config to prep for Maven Central publishing * add KTable mapValues tests * kdoc some functions * polishing Maven publishing + POM
- Loading branch information
Showing
18 changed files
with
321 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
buildSrc/src/main/kotlin/buildsrc/ext/KotkaPublishingSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package buildsrc.ext | ||
|
||
import javax.inject.Inject | ||
import org.gradle.api.Action | ||
import org.gradle.api.Project | ||
import org.gradle.api.artifacts.repositories.PasswordCredentials | ||
import org.gradle.api.provider.Property | ||
import org.gradle.api.provider.Provider | ||
import org.gradle.api.provider.ProviderFactory | ||
|
||
|
||
abstract class KotkaPublishingSettings @Inject constructor( | ||
providers: ProviderFactory, | ||
|
||
project: Project, | ||
) { | ||
|
||
abstract val mavenPomSubprojectName: Property<String> | ||
abstract val mavenPomDescription: Property<String> | ||
|
||
val gitHubPackagesCredentials: Provider<Action<PasswordCredentials>> = | ||
providers.credentialsAction("GitHubPackages") | ||
|
||
|
||
val sonatypeRepositoryCredentials: Provider<Action<PasswordCredentials>> = | ||
providers.credentialsAction("sonatypeRepository") | ||
|
||
val sonatypeRepositoryReleaseUrl: Provider<String> = providers.provider { | ||
if (project.version.toString().endsWith("SNAPSHOT")) { | ||
"https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
} else { | ||
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
} | ||
} | ||
|
||
|
||
val signingKeyId: Provider<String> = | ||
providers.gradleProperty("signing.keyId") | ||
val signingKey: Provider<String> = | ||
providers.gradleProperty("signing.key") | ||
val signingPassword: Provider<String> = | ||
providers.gradleProperty("signing.password") | ||
val signingSecretKeyRingFile: Provider<String> = | ||
providers.gradleProperty("signing.secretKeyRingFile") | ||
|
||
|
||
companion object { | ||
const val NAME = "kotkaPublishing" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.