GeezerVison is showing github.com — Publish: set signing config after publication is known. · zhoupan/objectbox-java@3d36275
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +10-10Lines changed: 10 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -86,16 +86,6 @@ configure(subprojects.findAll { projectNamesToPublish.contains(it.name) }) { |
86 | 86 | apply plugin: 'maven-publish' |
87 | 87 | apply plugin: 'signing' |
88 | 88 |
|
89 | | - signing { |
90 | | - if (hasSigningProperties()) { |
91 | | - String signingKey = new File(signingKeyFile).text |
92 | | - useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) |
93 | | - sign publishing.publications.mavenJava |
94 | | - } else { |
95 | | - println "Signing information missing/incomplete for ${project.name}" |
96 | | - } |
97 | | - } |
98 | | - |
99 | 89 | publishing { |
100 | 90 | repositories { |
101 | 91 | maven { |
@@ -155,6 +145,16 @@ configure(subprojects.findAll { projectNamesToPublish.contains(it.name) }) { |
155 | 145 | } |
156 | 146 | } |
157 | 147 | } |
| 148 | + |
| 149 | + signing { |
| 150 | + if (hasSigningProperties()) { |
| 151 | + String signingKey = new File(signingKeyFile).text |
| 152 | + useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) |
| 153 | + sign publishing.publications.mavenJava |
| 154 | + } else { |
| 155 | + println "Signing information missing/incomplete for ${project.name}" |
| 156 | + } |
| 157 | + } |
158 | 158 | } |
159 | 159 |
|
160 | 160 | wrapper { |
|