Skip to content

Commit a14b424

Browse files
lili2311ohad2712
authored and
ohad2712
committed
feat: allow gradle.properties file
Allow us to grapb the gradle.properties file to help with gradle project dependency generation.
1 parent 5c490e6 commit a14b424

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

client-templates/bitbucket-server/accept.json.sample

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,28 @@
238238
"password": "${BITBUCKET_PASSWORD}"
239239
}
240240
},
241+
{
242+
"//": "used to determine the full dependency tree",
243+
"method": "GET",
244+
"path": "/projects/:project/repos/:repo/browse*/gradle.properties",
245+
"origin": "https://${BITBUCKET_API}",
246+
"auth": {
247+
"scheme": "basic",
248+
"username": "${BITBUCKET_USERNAME}",
249+
"password": "${BITBUCKET_PASSWORD}"
250+
}
251+
},
252+
{
253+
"//": "used to determine the full dependency tree",
254+
"method": "GET",
255+
"path": "/projects/:project/repos/:repo/browse*%2Fgradle.properties",
256+
"origin": "https://${BITBUCKET_API}",
257+
"auth": {
258+
"scheme": "basic",
259+
"username": "${BITBUCKET_USERNAME}",
260+
"password": "${BITBUCKET_PASSWORD}"
261+
}
262+
},
241263
{
242264
"//": "used to determine the full dependency tree",
243265
"method": "GET",

client-templates/github-com/accept.json.sample

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@
5959
"path": "commits.*.modified.*",
6060
"value": "build.gradle"
6161
},
62+
{
63+
"path": "commits.*.added.*",
64+
"value": "gradle.properties"
65+
},
66+
{
67+
"path": "commits.*.modified.*",
68+
"value": "gradle.properties"
69+
},
70+
{
71+
"path": "commits.*.added.*",
72+
"value": "gradle.properties"
73+
},
74+
{
75+
"path": "commits.*.modified.*",
76+
"value": "gradle.properties"
77+
},
6278
{
6379
"path": "commits.*.added.*",
6480
"value": "build.sbt"
@@ -515,6 +531,30 @@
515531
"path": "/:name/:repo/:path*%2Fbuild.gradle",
516532
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
517533
},
534+
{
535+
"//": "used to determine the full dependency tree",
536+
"method": "GET",
537+
"path": "/repos/:name/:repo/contents/:path*/gradle.properties",
538+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
539+
},
540+
{
541+
"//": "used to determine the full dependency tree",
542+
"method": "GET",
543+
"path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties",
544+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
545+
},
546+
{
547+
"//": "used to determine the full dependency tree",
548+
"method": "GET",
549+
"path": "/:name/:repo/:path*/gradle.properties",
550+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
551+
},
552+
{
553+
"//": "used to determine the full dependency tree",
554+
"method": "GET",
555+
"path": "/:name/:repo/:path*%2Fgradle.properties",
556+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
557+
},
518558
{
519559
"//": "used to determine the full dependency tree",
520560
"method": "GET",

client-templates/github-enterprise/accept.json.sample

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@
5959
"path": "commits.*.modified.*",
6060
"value": "build.gradle"
6161
},
62+
{
63+
"path": "commits.*.added.*",
64+
"value": "gradle.properties"
65+
},
66+
{
67+
"path": "commits.*.modified.*",
68+
"value": "gradle.properties"
69+
},
6270
{
6371
"path": "commits.*.added.*",
6472
"value": "build.sbt"
@@ -420,6 +428,18 @@
420428
"path": "/repos/:name/:repo/contents/:path*%2Fbuild.gradle",
421429
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
422430
},
431+
{
432+
"//": "used to determine the full dependency tree",
433+
"method": "GET",
434+
"path": "/repos/:name/:repo/contents/:path*/gradle.properties",
435+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
436+
},
437+
{
438+
"//": "used to determine the full dependency tree",
439+
"method": "GET",
440+
"path": "/repos/:name/:repo/contents/:path*%2Fgradle.properties",
441+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
442+
},
423443
{
424444
"//": "used to determine the full dependency tree",
425445
"method": "GET",

client-templates/gitlab/accept.json.sample

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@
147147
"path": "/api/v4/projects/:project/repository/files*%2Fbuild.gradle",
148148
"origin": "https://${GITLAB}"
149149
},
150+
{
151+
"//": "used to determine the full dependency tree",
152+
"method": "GET",
153+
"path": "/api/v4/projects/:project/repository/files*/gradle.properties",
154+
"origin": "https://${GITLAB}"
155+
},
156+
{
157+
"//": "used to determine the full dependency tree",
158+
"method": "GET",
159+
"path": "/api/v4/projects/:project/repository/files*%2Fgradle.properties",
160+
"origin": "https://${GITLAB}"
161+
},
150162
{
151163
"//": "used to determine the full dependency tree",
152164
"method": "GET",

0 commit comments

Comments
 (0)