Skip to content

Commit

Permalink
Support publishing to Sonatype
Browse files Browse the repository at this point in the history
Add the necessary information to publish to the AWS specific Sonatype host.
  • Loading branch information
vRallev committed Sep 6, 2024
1 parent 507a864 commit e0a386d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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

0 comments on commit e0a386d

Please sign in to comment.