33 * SPDX-License-Identifier: Apache-2.0
44 */
55import aws.sdk.kotlin.gradle.dsl.configureLinting
6+ import aws.sdk.kotlin.gradle.dsl.configureNexus
67import aws.sdk.kotlin.gradle.util.typedProp
78
89buildscript {
@@ -20,7 +21,7 @@ buildscript {
2021 // only need to include it here, imports in subprojects will work automagically
2122 classpath(" aws.sdk.kotlin:build-plugins" ) {
2223 version {
23- require(" 0.2.0 " )
24+ require(" 0.2.2 " )
2425 }
2526 }
2627 }
@@ -29,7 +30,6 @@ buildscript {
2930plugins {
3031 kotlin(" jvm" ) apply false
3132 id(" org.jetbrains.dokka" )
32- id(" io.github.gradle-nexus.publish-plugin" ) version " 1.1.0"
3333 id(" org.jetbrains.kotlinx.binary-compatibility-validator" ) version " 0.12.1"
3434}
3535
@@ -99,29 +99,10 @@ tasks.dokkaHtmlMultiModule.configure {
9999 removeChildTasks(excludeFromDocumentation)
100100}
101101
102- if (
103- project.hasProperty(" sonatypeUsername" ) &&
104- project.hasProperty(" sonatypePassword" ) &&
105- project.hasProperty(" publishGroupName" )
106- ) {
107- apply (plugin = " io.github.gradle-nexus.publish-plugin" )
108-
109- val publishGroupName = project.property(" publishGroupName" ) as String
110- group = publishGroupName
111-
112- nexusPublishing {
113- packageGroup.set(publishGroupName)
114- repositories {
115- create(" awsNexus" ) {
116- nexusUrl.set(uri(" https://aws.oss.sonatype.org/service/local/" ))
117- snapshotRepositoryUrl.set(uri(" https://aws.oss.sonatype.org/content/repositories/snapshots/" ))
118- username.set(project.property(" sonatypeUsername" ) as String )
119- password.set(project.property(" sonatypePassword" ) as String )
120- }
121- }
122- }
123- }
102+ // Publishing
103+ configureNexus()
124104
105+ // Code Style
125106val lintPaths = listOf (
126107 " **/*.{kt,kts}" ,
127108 " !**/generated-src/**" ,
@@ -130,6 +111,7 @@ val lintPaths = listOf(
130111
131112configureLinting(lintPaths)
132113
114+ // Binary compatibility
133115apiValidation {
134116 nonPublicMarkers.add(" aws.smithy.kotlin.runtime.InternalApi" )
135117
0 commit comments