Highlight
Revision as of 15:32, 24 March 2021 by Quisque admin (talk | contribs)
1 uploadArchives {
2 def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defaultUrlMavenRepository
3 def usernameWebserverSsh=(System.getenv('USERNAME_WEBSERVER_SSH') != null) ? System.getenv("USERNAME_WEBSERVER_SSH") : project.defaultUsernameWebserverSsh
4 def webserverSshPrivateKeyPath=(System.getenv('WEBSERVER_SSH_PRIVATE_KEY_PATH') != null) ? System.getenv("WEBSERVER_SSH_PRIVATE_KEY_PATH") : project.defaultWebserverSshPrivateKeyPath
5
6 configuration = configurations.archives
7 repositories.mavenDeployer {
8 pom.groupId = project.group
9 pom.artifactId = project.archivesBaseName
10 pom.version = project.version
11 configuration = configurations.deployerJar
12 repository(url: urlMavenRepository) {
13 authentication(userName: usernameWebserverSsh, privateKey: webserverSshPrivateKeyPath)
14 }
15
16 pom.project {
17 name project.name
18 packaging 'jar'
19 description project.description
20 url 'https://quisque.io'
21 }
22 }
23 }