kotlin-bom: Add distributionManagement and signing profile

Since kotlin-bom intentionally has no parent these settings have to be duplicated
same as in the root kotlin-project pom.

#KT-18398
This commit is contained in:
Ilya Gorbunov
2018-10-31 18:57:30 +03:00
parent 11519e40cc
commit 332b843301
+38
View File
@@ -173,4 +173,42 @@
</dependencies>
</dependencyManagement>
<distributionManagement>
<repository>
<id>${deploy-repo}</id>
<url>${deploy-url}</url>
</repository>
<snapshotRepository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<profiles>
<profile>
<id>sign-artifacts</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<configuration>
<passphrase>${kotlin.key.passphrase}</passphrase>
<keyname>${kotlin.key.name}</keyname>
<homedir>../../.gnupg</homedir>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>