@@ -67,18 +67,6 @@ subprojects {
67
67
group ' build'
68
68
}
69
69
70
- task publish {
71
- dependsOn tasks. uploadArchives
72
- }
73
-
74
- configurations {
75
- mavenDeploySupport
76
- }
77
-
78
- dependencies {
79
- mavenDeploySupport " org.apache.maven.wagon:wagon-http:2.2"
80
- }
81
-
82
70
artifacts {
83
71
archives sourceJar
84
72
archives javadocJar
@@ -91,90 +79,106 @@ subprojects {
91
79
sign configurations. archives
92
80
}
93
81
94
- def mavenProjectDescription = {
95
- name project. mavenName ?: project. name
96
- if (project. description) {
97
- description project. description
82
+ repositories {
83
+ mavenLocal()
84
+ mavenCentral()
85
+ }
86
+ }
87
+
88
+ gradle. projectsEvaluated {
89
+ subprojects {
90
+ configurations {
91
+ mavenDeploySupport
98
92
}
99
- url ' https://github.com/culturegraph/metafacture-core'
100
- inceptionYear ' 2011'
101
- organization {
102
- name ' Deutsche Nationalbibliothek'
103
- url ' http://dnb.de/'
93
+
94
+ dependencies {
95
+ mavenDeploySupport " org.apache.maven.wagon:wagon-http:2.2"
104
96
}
105
- licenses {
106
- license {
107
- name ' The Apache License, Version 2.0'
108
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
97
+
98
+ def mavenProjectDescription = {
99
+ name project. mavenName ?: project. name
100
+ if (project. description) {
101
+ description project. description
109
102
}
110
- }
111
- mailingLists {
112
- mailingList {
113
- name ' Metafacture Mailing List'
114
-
115
-
116
-
117
- archive ' http://lists.dnb.de/pipermail/metafacture/'
103
+ url ' https://github.com/culturegraph/metafacture-core'
104
+ inceptionYear ' 2011'
105
+ organization {
106
+ name ' Deutsche Nationalbibliothek'
107
+ url ' http://dnb.de/'
108
+ }
109
+ licenses {
110
+ license {
111
+ name ' The Apache License, Version 2.0'
112
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
113
+ }
114
+ }
115
+ mailingLists {
116
+ mailingList {
117
+ name ' Metafacture Mailing List'
118
+
119
+
120
+
121
+ archive ' http://lists.dnb.de/pipermail/metafacture/'
122
+ }
123
+ }
124
+ scm {
125
+ connection ' scm:git:https://github.com/metafacture/metafacture-core.git'
126
+ developerConnection ' scm:git:https://github.com/metafacture/metafacture-core.git'
127
+ url ' https://github.com/metafacture/metafacture-core'
128
+ tag rootProject. scmInfo. tag ?: ' HEAD'
129
+ }
130
+ issueManagement {
131
+ system ' Github'
132
+ url ' https://github.com/metafacture/metafacture-core/issues'
133
+ }
134
+ ciManagement {
135
+ system ' Travis CI'
136
+ url ' https://travis-ci.org/metafacture/metafacture-core'
118
137
}
119
138
}
120
- scm {
121
- connection ' scm:git:https://github.com/metafacture/metafacture-core.git'
122
- developerConnection ' scm:git:https://github.com/metafacture/metafacture-core.git'
123
- url ' https://github.com/metafacture/metafacture-core'
124
- tag project. scmInfo. tag ?: ' HEAD'
125
- }
126
- issueManagement {
127
- system ' Github'
128
- url ' https://github.com/metafacture/metafacture-core/issues'
129
- }
130
- ciManagement {
131
- system ' Travis CI'
132
- url ' https://travis-ci.org/metafacture/metafacture-core'
133
- }
134
- }
135
139
136
- install {
137
- repositories {
138
- mavenInstaller {
139
- pom. project mavenProjectDescription
140
- beforeDeployment {
141
- MavenDeployment deployment -> signing. signPom(deployment)
140
+ install {
141
+ repositories {
142
+ mavenInstaller {
143
+ pom. project mavenProjectDescription
144
+ beforeDeployment {
145
+ MavenDeployment deployment -> signing. signPom(deployment)
146
+ }
142
147
}
143
148
}
144
149
}
145
- }
146
150
147
- uploadArchives {
148
- repositories {
149
- mavenDeployer {
150
- configuration = configurations. mavenDeploySupport
151
- if (project. hasProperty(' releaseRepositoryUrl' )) {
152
- repository(url : releaseRepositoryUrl) {
153
- if (project. hasProperty(' releaseRepositoryUser' )) {
154
- authentication(userName : releaseRepositoryUser,
155
- password : releaseRepositoryPassword)
151
+ uploadArchives {
152
+ repositories {
153
+ mavenDeployer {
154
+ configuration = configurations. mavenDeploySupport
155
+ if (project. hasProperty(' releaseRepositoryUrl' )) {
156
+ repository(url : releaseRepositoryUrl) {
157
+ if (project. hasProperty(' releaseRepositoryUser' )) {
158
+ authentication(userName : releaseRepositoryUser,
159
+ password : releaseRepositoryPassword)
160
+ }
156
161
}
157
162
}
158
- }
159
- if (project . hasProperty( ' snapshotRepositoryUrl' ) ) {
160
- snapshotRepository( url : snapshotRepositoryUrl ) {
161
- if (project . hasProperty( ' snapshotRepositoryUser ' )) {
162
- authentication( userName : snapshotRepositoryUser,
163
- password : snapshotRepositoryPassword)
163
+ if (project . hasProperty( ' snapshotRepositoryUrl ' )) {
164
+ snapshotRepository( url : snapshotRepositoryUrl) {
165
+ if (project . hasProperty( ' snapshotRepositoryUser ' ) ) {
166
+ authentication( userName : snapshotRepositoryUser,
167
+ password : snapshotRepositoryPassword)
168
+ }
164
169
}
165
170
}
166
- }
167
- pom . project mavenProjectDescription
168
- beforeDeployment {
169
- MavenDeployment deployment -> signing . signPom(deployment)
171
+ pom . project mavenProjectDescription
172
+ beforeDeployment {
173
+ MavenDeployment deployment -> signing . signPom(deployment)
174
+ }
170
175
}
171
176
}
172
177
}
173
- }
174
178
175
- repositories {
176
- mavenLocal()
177
- mavenCentral()
179
+ task publish {
180
+ dependsOn tasks . uploadArchives
181
+ }
178
182
}
179
183
}
180
184
0 commit comments