You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/RELEASING.adoc
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,9 @@ Create a https://github.com/TWCable/grabbit/releases/new[new GitHub release], se
32
32
33
33
== Upload to BinTray
34
34
35
-
. https://bintray.com/twcable/aem/Grabbit/new/version[Create a new version record] ("`Name`" is the version without the "v". Leave "`Description`" blank)
36
-
. Fill in the "`Version Details`" -- most notably the "`VCS tag`". Everything else will be inherited from the main project metadata.
37
-
. Using your BinTray username and https://bintray.com/profile/edit[your API key], use the following curl command with appropriate substitutions:
38
-
39
35
[source,bash]
40
36
--
41
-
curl -u ${USER_NAME}:${API_KEY} -T grabbit/build/distributions/grabbit-${VERSION}.zip -X PUT https://bintray.com/api/v1/content/twcable/aem/Grabbit/${VERSION}/grabbit-${VERSION}.zip\?publish\=1
37
+
$ ./gradlew bintrayUpload
42
38
--
39
+
40
+
If you have not yet set up your credentials, the task will tell you what to do.
// The whole build dir is excluded by default, but we need build/generated-sources,
110
113
// which contains the generated proto classes.
111
114
excludeDirs = [
112
-
file("$buildDir/classes"),
113
-
file("$buildDir/docs"),
114
-
file("$buildDir/dependency-cache"),
115
-
file("$buildDir/libs"),
116
-
file("$buildDir/reports"),
117
-
file("$buildDir/resources"),
118
-
file("$buildDir/test-results"),
119
-
file("$buildDir/tmp"),
115
+
file("$buildDir/classes"),
116
+
file("$buildDir/docs"),
117
+
file("$buildDir/dependency-cache"),
118
+
file("$buildDir/libs"),
119
+
file("$buildDir/reports"),
120
+
file("$buildDir/resources"),
121
+
file("$buildDir/test-results"),
122
+
file("$buildDir/tmp"),
120
123
]
121
124
}
122
125
}
126
+
127
+
gradle.taskGraph.whenReady { taskGraph ->
128
+
if (taskGraph.hasTask(bintrayUpload)) {
129
+
if (!project.hasProperty('bintray.user') ||!project.hasProperty('bintray.key')) {
130
+
thrownewIllegalArgumentException((String)"Please define 'bintray.user' and "+
131
+
"'bintray.key' properties. (Such as in ~/.gradle/gradle.properties)")
132
+
}
133
+
}
134
+
}
135
+
136
+
version =newVersion(version asString)
137
+
138
+
bintray {
139
+
user = project.properties['bintray.user']
140
+
key = project.properties['bintray.key']
141
+
filesSpec {
142
+
from tasks.getByPath('createPackage').archivePath
143
+
into '.'
144
+
}
145
+
146
+
publish = version.status =='release'
147
+
148
+
pkg {
149
+
userOrg ='twcable'
150
+
repo ='aem'
151
+
name ='Grabbit'
152
+
153
+
desc ='The purpose of this project is to provide a reliable and fast solution for copying content from a Source to Destination. Source and destination can be any AEM instances.'
0 commit comments