Highlight
Revision as of 15:24, 24 March 2021 by Quisque admin (talk | contribs) (Created page with "<highlight lang="groovy">... uploadArchives { def urlMavenRepository=(System.getenv('URL_MAVEN_REPOSITORY') != null) ? System.getenv("URL_MAVEN_REPOSITORY") : project.defa...")
<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>