Difference between revisions of "Highlight"

From Wiquipedia
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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<highlight lang="groovy">...
+
<syntaxhighlight lang="java" line="1">
 
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 22: Line 22:
 
         }
 
         }
 
     }
 
     }
}
+
}</syntaxhighlight>
...</highlight>
 

Latest revision as of 15:32, 24 March 2021

 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 }