Skip to content

Commit 06d3f44

Browse files
authored
chore: setup Release Please (#148)
* chore: setup Release Please This creates PRs that can be merged to create GitHub Releases for each of the components of Functions Framework Java.
1 parent 9c88d18 commit 06d3f44

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"functions-framework-api":"1.0.4","invoker":"1.1.1","function-maven-plugin":"0.10.1"}

.github/release-please-config.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"separate-pull-requests": true,
3+
"packages": {
4+
"functions-framework-api": {
5+
"release-type": "maven",
6+
"component": "functions-framework-api",
7+
"extra-files": [
8+
{
9+
"type": "xml",
10+
"path": "pom.xml",
11+
"xpath": "//*[local-name()='artifactId' and text()='functions-framework-api']/parent::*/*[local-name()='version']"
12+
}
13+
]
14+
},
15+
"invoker": {
16+
"release-type": "maven",
17+
"component": "java-function-invoker",
18+
"extra-files": [
19+
{
20+
"type": "xml",
21+
"path": "pom.xml",
22+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-parent']/parent::*/*[local-name()='version']"
23+
},
24+
{
25+
"type": "xml",
26+
"path": "core/pom.xml",
27+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-parent']/parent::*/*[local-name()='version']"
28+
},
29+
{
30+
"type": "xml",
31+
"path": "core/pom.xml",
32+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker']/parent::*/*[local-name()='version']"
33+
},
34+
{
35+
"type": "xml",
36+
"path": "core/pom.xml",
37+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-testfunction']/parent::*/*[local-name()='version']"
38+
},
39+
{
40+
"type": "xml",
41+
"path": "conformance/pom.xml",
42+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-parent']/parent::*/*[local-name()='version']"
43+
},
44+
{
45+
"type": "xml",
46+
"path": "conformance/pom.xml",
47+
"xpath": "//*[local-name()='artifactId' and text()='conformance']/parent::*/*[local-name()='version']"
48+
},
49+
{
50+
"type": "xml",
51+
"path": "testfunction/pom.xml",
52+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-parent']/parent::*/*[local-name()='version']"
53+
},
54+
{
55+
"type": "xml",
56+
"path": "testfunction/pom.xml",
57+
"xpath": "//*[local-name()='artifactId' and text()='java-function-invoker-testfunction']/parent::*/*[local-name()='version']"
58+
}
59+
]
60+
},
61+
"function-maven-plugin": {
62+
"release-type": "maven",
63+
"component": "function-maven-plugin",
64+
"extra-files": [
65+
{
66+
"type": "xml",
67+
"path": "pom.xml",
68+
"xpath": "//*[local-name()='artifactId' and text()='function-maven-plugin']/parent::*/*[local-name()='version']"
69+
}
70+
]
71+
}
72+
}
73+
}

.github/release-please.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
handleGHRelease: true
2+
monorepoTags: true
3+
manifest: true
4+
manifestConfig: '.github/release-please-config.json'
5+
manifestFile: '.github/.release-please-manifest.json'

0 commit comments

Comments
 (0)