|
18 | 18 | * limitations under the License.
|
19 | 19 | */
|
20 | 20 |
|
21 |
| -apply plugin: 'com.jfrog.artifactory' |
22 | 21 | apply plugin: 'signing'
|
23 | 22 |
|
24 | 23 | // Add various details to the pom file to allow for publishing
|
@@ -74,17 +73,6 @@ if (ext.publishLibrary) {
|
74 | 73 | }
|
75 | 74 | }
|
76 | 75 | }
|
77 |
| - artifactoryPublish { |
78 |
| - // As a safeguard, only actually publish to artifactory if -PpublishBuild=true is passed to gradle |
79 |
| - // Note: skip is documented, but onlyIf seems to also be required to make this work for some reason |
80 |
| - // See: https://gist.github.com/DALDEI/40925568cef57e16e8a7 |
81 |
| - def publishBuild = Boolean.parseBoolean(publishBuild) |
82 |
| - skip = !publishBuild |
83 |
| - onlyIf { |
84 |
| - publishBuild |
85 |
| - } |
86 |
| - publications(publishing.publications.library) |
87 |
| - } |
88 | 76 | createDistribution.configure {
|
89 | 77 | afterEvaluate {
|
90 | 78 | dependsOn generatePomFileForLibraryPublication
|
@@ -128,25 +116,3 @@ publishing {
|
128 | 116 | }
|
129 | 117 | }
|
130 | 118 | }
|
131 |
| - |
132 |
| -if (System.getenv('ARTIFACTORY_USER') != null && System.getenv('ARTIFACTORY_KEY') != null) { |
133 |
| - artifactory { |
134 |
| - clientConfig.setIncludeEnvVars(true) |
135 |
| - publish { |
136 |
| - def artifactoryUrl = System.getenv('ARTIFACTORY_URL') ?: 'https://ossartifacts.jfrog.io/artifactory/' |
137 |
| - contextUrl = artifactoryUrl |
138 |
| - repository { |
139 |
| - repoKey = System.getenv('ARTIFACTORY_REPO') ?: 'fdb-record-layer' |
140 |
| - username = System.getenv('ARTIFACTORY_USER') |
141 |
| - password = System.getenv('ARTIFACTORY_KEY') |
142 |
| - } |
143 |
| - defaults { |
144 |
| - publications('mavenJava') |
145 |
| - publishPom = publishBuild |
146 |
| - publishArtifacts = publishBuild |
147 |
| - publishBuildInfo = publishBuild |
148 |
| - publishIvy = false |
149 |
| - } |
150 |
| - } |
151 |
| - } |
152 |
| -} |
0 commit comments