Skip to content

Commit

Permalink
Copy maven metadata on local publish (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase authored Jun 17, 2022
1 parent 025f45c commit e670266
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ subprojects {
}
}

task copyMavenMetadataForDevelopment(type: Copy) {
from('build/tmp/publishMavenJavaPublicationToMavenLocal') {
rename 'module-maven-metadata.xml', 'maven-metadata.xml'
}

def wdir = System.getProperty("user.home") + '/.m2/repository/software/amazon/smithy/' + project.name
into(wdir)
}

publishToMavenLocal.finalizedBy(copyMavenMetadataForDevelopment)

// ==== CheckStyle ====
// https://docs.gradle.org/current/userguide/checkstyle_plugin.html
apply plugin: "checkstyle"
Expand Down

0 comments on commit e670266

Please sign in to comment.