Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (69 sloc) 2.234 kb
5c43dec @ypujante Initial release 1.0.0
ypujante authored
1
2 /*
3 * Copyright (c) 2010-2010 LinkedIn, Inc
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18 /**
19 * Repositories for build
20 */
21 allRepositories.build = {
22 mavenCentral()
23 }
24
25 def topReleaseDir = userConfig.top.release.dir ?: "${topBuildDir}/release"
26
27 /**
28 * Repositories for release
29 */
30 allRepositories.snapshotRelease = {
31 add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
32 name = 'local-release'
33 addIvyPattern "${topReleaseDir}/[organisation]/[module]/[revision]/[module]-[revision].ivy"
34 addArtifactPattern "${topReleaseDir}/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
35 m2compatible = true
36 }
37 }
38
39 allRepositories.release = allRepositories.snapshotRelease
40
41 def topPublishDir = userConfig.top.publish.dir ?: "${topBuildDir}/publish"
42
43 /**
44 * Repositories for publish
45 */
46 allRepositories.snapshotPublish = {
47 mavenDeployer {
48 repository(url: "file://localhost${topPublishDir}")
49 pom.whenConfigured { pomToConfigure ->
50 pomToConfigure.project {
51 name project.name
d431364 @ypujante made javadoc, groovydoc separate
ypujante authored
52 description 'A useful set of gradle plugins'
5c43dec @ypujante Initial release 1.0.0
ypujante authored
53 url 'http://github.com/linkedin/gradle-plugins'
54 licenses {
55 license {
56 name 'The Apache Software License, Version 2.0'
57 url 'http://www.apache.org/licenses/LICENSE-2.0'
58 }
59 }
60 developers {
61 developer {
62 id 'ypujante'
63 name 'Yan Pujante'
64 email 'yan@pongasoft.com'
65 }
66 }
67 scm {
68 connection "scm:git:${spec.scmUrl}"
69 developerConnection "scm:git:${spec.scmUrl}"
70 url spec.scmUrl
71 }
72 }
73 }
74 }
75 }
76
77 allRepositories.publish = allRepositories.snapshotPublish
Something went wrong with that request. Please try again.