Difference between revisions of "Highlight"
Jump to navigation
Jump to search
(Created page with "<highlight lang="groovy">... uploadArchives { def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defa...") |
|||
Line 1: | Line 1: | ||
− | <highlight lang="groovy"> | + | <highlight lang="groovy"> |
uploadArchives { | uploadArchives { | ||
def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defaultUrlMavenRepository | def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defaultUrlMavenRepository | ||
Line 23: | Line 23: | ||
} | } | ||
} | } | ||
− | + | </highlight> |
Revision as of 15:24, 24 March 2021
<highlight lang="groovy"> uploadArchives {
def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defaultUrlMavenRepository def usernameWebserverSsh=(System.getenv('USERNAME_WEBSERVER_SSH') != null) ? System.getenv("USERNAME_WEBSERVER_SSH") : project.defaultUsernameWebserverSsh def webserverSshPrivateKeyPath=(System.getenv('WEBSERVER_SSH_PRIVATE_KEY_PATH') != null) ? System.getenv("WEBSERVER_SSH_PRIVATE_KEY_PATH") : project.defaultWebserverSshPrivateKeyPath
configuration = configurations.archives repositories.mavenDeployer { pom.groupId = project.group pom.artifactId = project.archivesBaseName pom.version = project.version configuration = configurations.deployerJar repository(url: urlMavenRepository) { authentication(userName: usernameWebserverSsh, privateKey: webserverSshPrivateKeyPath) }
pom.project { name project.name packaging 'jar' description project.description url 'https://quisque.io' } }
} </highlight>