|
1 | 1 | plugins { |
2 | 2 | id "java-library" |
3 | 3 | id "maven-publish" |
4 | | - id "maven" |
5 | 4 | id "signing" |
6 | 5 | id "com.github.jk1.dependency-license-report" version "1.3" |
7 | 6 | id "io.snyk.gradle.plugin.snykplugin" version "0.4" |
@@ -70,52 +69,47 @@ signing { |
70 | 69 | sign configurations.archives |
71 | 70 | } |
72 | 71 |
|
73 | | -uploadArchives { |
74 | | - repositories { |
75 | | - mavenDeployer { |
76 | | - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } |
77 | | - repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { |
78 | | - authentication(userName: ossrhUsername, password: ossrhPassword) |
79 | | - } |
80 | | - snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { |
81 | | - authentication(userName: ossrhUsername, password: ossrhPassword) |
82 | | - } |
83 | | - pom.project { |
84 | | - name '${group}:${project.name}' |
85 | | - packaging 'jar' |
86 | | - description 'Library that adds functionality on top of the MarkLogic Java Client' |
87 | | - url 'https://github.com/marklogic-community/${project.name}' |
88 | | - scm { |
89 | | - url '[email protected]:marklogic-community/${project.name}.git' |
90 | | - connection 'scm:[email protected]:marklogic-community/${project.name}.git' |
91 | | - developerConnection 'scm:[email protected]:marklogic-community/${project.name}.git' |
92 | | - } |
| 72 | +publishing { |
| 73 | + publications { |
| 74 | + mainJava(MavenPublication) { |
| 75 | + pom { |
| 76 | + name = "${group}:${project.name}" |
| 77 | + description = "Library that adds functionality on top of the MarkLogic Java Client" |
| 78 | + url = "https://github.com/marklogic-community/${project.name}" |
93 | 79 | licenses { |
94 | 80 | license { |
95 | | - name 'The Apache License, Version 2.0' |
96 | | - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' |
| 81 | + name = "The Apache License, Version 2.0" |
| 82 | + url = "http://www.apache.org/licenses/LICENSE-2.0.txt" |
97 | 83 | } |
98 | 84 | } |
99 | 85 | developers { |
100 | 86 | developer { |
101 | | - id 'marklogic' |
102 | | - name 'MarkLogic Github Contributors' |
103 | | - |
| 87 | + id = "marklogic" |
| 88 | + name = "MarkLogic Github Contributors" |
| 89 | + |
104 | 90 | } |
105 | 91 | } |
| 92 | + scm { |
| 93 | + url = "[email protected]:marklogic-community/${project.name}.git" |
| 94 | + connection = "scm:[email protected]:marklogic-community/${project.name}.git" |
| 95 | + developerConnection = "scm:[email protected]:marklogic-community/${project.name}.git" |
| 96 | + } |
106 | 97 | } |
107 | | - } |
108 | | - } |
109 | | -} |
110 | | - |
111 | | -publishing { |
112 | | - publications { |
113 | | - mainJava(MavenPublication) { |
114 | 98 | from components.java |
115 | 99 | artifact sourcesJar |
116 | 100 | artifact javadocJar |
117 | 101 | } |
118 | 102 | } |
| 103 | + repositories { |
| 104 | + maven { |
| 105 | + name = "central" |
| 106 | + url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" |
| 107 | + credentials { |
| 108 | + username "$ossrhUsername" |
| 109 | + password "$ossrhPassword" |
| 110 | + } |
| 111 | + } |
| 112 | + } |
119 | 113 | } |
120 | 114 |
|
121 | 115 | // See https://github.com/snyk/gradle-plugin for more information |
|
0 commit comments