|
@@ -56,22 +56,7 @@ task wrapper(type: Wrapper) {
|
56
|
56
|
gradleVersion = '2.2.1'
|
57
|
57
|
}
|
58
|
58
|
|
59
|
|
-task getCredentials << {
|
60
|
|
- def target = file('nexus-teamcity.gradle')
|
61
|
|
- if (!target.exists()) {
|
62
|
|
- new URL('http://www.dmdirc.com/private/nexus-teamcity.gradle').withInputStream{
|
63
|
|
- i -> target.withOutputStream { it << i }
|
64
|
|
- }
|
65
|
|
- }
|
66
|
|
-
|
67
|
|
- apply from: 'nexus-teamcity.gradle'
|
68
|
|
- project.publishing.repositories[0].credentials {
|
69
|
|
- username "$nexusUser"
|
70
|
|
- password "$nexusPass"
|
71
|
|
- }
|
72
|
|
-}
|
73
|
|
-
|
74
|
|
-task publishSnapshot(dependsOn: ['getCredentials', 'publishMavenJavaPublicationToSnapshotsRepository']) << {
|
|
59
|
+task publishSnapshot(dependsOn: 'publishMavenJavaPublicationToSnapshotsRepository') << {
|
75
|
60
|
}
|
76
|
61
|
|
77
|
62
|
buildscript {
|