diff --git a/build.gradle b/build.gradle index f0f0ac8..7e93005 100644 --- a/build.gradle +++ b/build.gradle @@ -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) { diff --git a/gradle.properties b/gradle.properties index d742e42..cc23ca9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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/ @@ -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