Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support publishing to Sonatype #11

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ subprojects {
checkTask.dependsOn('detekt')
}
}

plugins.withId(libs.plugins.maven.publish.get().pluginId) {
def publish = extensions.getByType(com.vanniktech.maven.publish.MavenPublishBaseExtension.class)
//noinspection GroovyAssignabilityCheck
publish.publishToMavenCentral(new com.vanniktech.maven.publish.SonatypeHost('https://aws.oss.sonatype.org'))
}
}

private static void configureDefaultDetektTask(SourceTask task) {
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ VERSION_NAME=0.0.1-SNAPSHOT
GROUP=software.amazon.lastmile.kotlin.inject.anvil

SONATYPE_AUTOMATIC_RELEASE=true
SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true

POM_DESCRIPTION=Extensions for kotlin-inject to make dependency injection easier with a similar feature set as Anvil.
POM_INCEPTION_YEAR=2024

POM_URL=https://github.com/amzn/kotlin-inject-anvil/
POM_SCM_URL=https://github.com/amzn/kotlin-inject-anvil/
Expand All @@ -25,6 +25,10 @@ POM_LICENCE_NAME=Apache-2.0
POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=last-mile-dat
POM_DEVELOPER_NAME=Driver Assistance Technology
POM_DEVELOPER_URL=https://github.com/amzn

android.useAndroidX=true
android.enableJetifier=false
android.defaults.buildfeatures.buildconfig=false
Expand Down