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
[](https://github.com/AdoptOpenJDK/blog/actions/workflows/deploy-to-gh-pages.yml)
2
4
3
-
# AdoptOpenJDK Blog
5
+
This is the source of the AdoptOpenJDK blog: <https://blog.adoptopenjdk.net/>
4
6
5
-
This is the source of the [AdoptOpenJDK blog](https://blog.adoptopenjdk.net/).
7
+
React 19 upgrade plan: see docs/react19-plan.md for the phased plan and current blocker status.
6
8
7
9
## Prerequisites
8
10
9
11
1. Install dependencies, run `npm install` in the root directory of the repository.
10
12
11
13
## Adding Content
12
14
13
-
1. Create a folder in `blog` that is named after your post's title. [Slugify](https://blog.tersmitten.nl/slugify/) the title if it's more than a single word. Example: `hello-world`.
15
+
1. Create a folder in `blog` that is named after your post's title. Slugify the title if it's more than a single word. Example: `hello-world`.
14
16
2. Create a file called `index.md` in the directory you just created (`blog/hello-world`).
15
17
3. Add the required metadata at the beginning of the file
16
-
```
17
-
---
18
-
title: Hello World
19
-
date: "2020-04-21T12:20:00+00:00"
20
-
author: janedoe
21
-
featuredImage: "./featured_image.png" (optional)
22
-
---
23
-
```
24
-
`title` is the title of your post as it appears on the website. `date` is the ISO 8601 timestamp of the publication date (`date -u +"%Y-%m-%dT%H:%M:%SZ"` generates that for you on the command line) and `author` the identifier of the author as specified in the `authors.json`. `featuredImage` (optional) the relative path to the featured image.
18
+
19
+
---
20
+
title: Hello World
21
+
date: "2020-04-21T12:20:00+00:00"
22
+
author: janedoe
23
+
featuredImage: "./featured_image.png" (optional)
24
+
---
25
+
26
+
`title` is the title of your post as it appears on the website. `date` is the ISO 8601 timestamp of the publication date (`date -u +"%Y-%m-%dT%H:%M:%SZ"` generates that for you on the command line) and `author` the identifier of the author as specified in the `authors.json`. `featuredImage` (optional) the relative path to the featured image.
25
27
4. Write your post in Markdown. Save any images in the folder of your post alongside the `index.md`. Put the biggest resolution in there that you have. Responsive images will automatically be generated for you.
26
28
27
29
To preview your post, start the local development server by running `gatsby develop` in the root directory of the repository.
28
30
29
-
**WARNING**: The RSS feed is only generated in production mode: `gatsby build && gatsby serve`.
31
+
WARNING: The RSS feed is only generated in production mode: `gatsby build && gatsby serve`.
30
32
31
33
## Editing Conventions
32
34
@@ -38,75 +40,61 @@ On the front page, we only display excerpts and not full posts. By default, Gats
38
40
39
41
To add captions to your images, use the following structure:
40
42
41
-
```markdown
42
-

43
-
*Your caption here*
44
-
```
43
+

44
+
*Your caption here*
45
45
46
46
Our CSS will take care of rendering it correctly by looking for `img + em`.
47
47
48
48
Example:
49
49
50
-
```markdown
51
-

52
-
*AQA v1.0 is a first drop in an on-going series of improvements.*
53
-
```
50
+

51
+
*AQA v1.0 is a first drop in an on-going series of improvements.*
54
52
55
53
### Quotes
56
54
57
-
```markdown
58
-
> Quote
59
-
>
60
-
> <cite>Name of the person</cite>
61
-
```
55
+
> Quote
56
+
>
57
+
> <cite>Name of the person</cite>
62
58
63
59
Example:
64
60
65
-
```markdown
66
-
> When the Well is Dry, We’ll Know the Worth of Water.
67
-
>
68
-
> <cite>Benjamin Franklin</cite>
69
-
```
61
+
> When the Well is Dry, We’ll Know the Worth of Water.
62
+
>
63
+
> <cite>Benjamin Franklin</cite>
70
64
71
65
### Guest Posts
72
66
73
67
Right after the front matter, add the following snippet to introduce the person that wrote the post:
74
68
75
-
```markdown
76
-
<GuestPost>
77
-
Some introductory text
78
-
</GuestPost>
79
-
```
69
+
<GuestPost>
70
+
Some introductory text
71
+
</GuestPost>
80
72
81
73
This is going to render as:
82
74
83
-
```
84
-
<p className="guestpost">
85
-
<em>Some introductory text – AdoptOpenJDK Team</em>
86
-
</p>
87
-
```
75
+
<p className="guestpost">
76
+
<em>Some introductory text – AdoptOpenJDK Team</em>
77
+
</p>
88
78
89
79
Example:
90
80
91
-
```markdown
92
-
<GuestPost>
93
-
This a guest post by <a href="https://www.linkedin.com/in/weitzelm/">Mark Weitzel</a>, General Manager, New Relic One at New Relic.
94
-
</GuestPost>
95
-
```
81
+
<GuestPost>
82
+
This a guest post by <a href="https://www.linkedin.com/in/weitzelm/">Mark Weitzel</a>, General Manager, New Relic One at New Relic.
83
+
</GuestPost>
96
84
97
-
**Note:** Markdown is not supported within `<GuestPost/>`. This is a limitation of MDX v1 and fixed in [MDX v2](https://github.com/mdx-js/mdx/issues/1041) which is currently being developed.
85
+
Note: Markdown is not supported within `<GuestPost/>`. This is a limitation of MDX v1 and fixed in MDX v2 (<https://github.com/mdx-js/mdx/issues/1041>) which is currently being developed.
98
86
99
87
## Adding Authors
100
88
101
89
1. Create an entry in `content/authors.json`. Structure:
102
-
```json
103
-
{
104
-
"janedoe": {
105
-
"name": "Jane Doe",
106
-
"summary": "Some info about Jane",
107
-
"twitter": "Jane's Twitter handle",
108
-
"github": "Jane's GitHub username"
109
-
}
110
-
}
111
-
```
90
+
91
+
{
92
+
"janedoe": {
93
+
"name": "Jane Doe",
94
+
"summary": "Some info about Jane",
95
+
"twitter": "Jane's Twitter handle",
96
+
"github": "Jane's GitHub username"
97
+
}
98
+
}
99
+
112
100
2. Your profile picture comes from github but this can be changed by adding a profile picture in `content/assets/authors`. If the key in the `authors.json` is `janedoe`, name the image file `janedoe.jpg`.
Copy file name to clipboardExpand all lines: content/blog/bundling-adoptopenjdk-into-a-notarized-macos-application/index.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Some changes have been made to the way we codesign our macOS binaries.
15
15
16
16
## Summary
17
17
18
-
Apple has recently changed the requirements for applications to install on macOS 10.15 and above. The change requires developers to notarize the application before it gets shipped. Notarization involves submitting the application to Apple to be scanned and generates a JSON report with any issues. More information about notarization can be found [here](https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution).
18
+
Apple has recently changed the requirements for applications to install on macOS 10.15 and above. The change requires developers to notarize the application before it gets shipped. Notarization involves submitting the application to Apple to be scanned and generates a JSON report with any issues. More information about notarization can be found in [Apple’s docs on notarization](https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution).
19
19
20
20
## What’s changed?
21
21
@@ -25,8 +25,10 @@ We have enabled hardened runtime on our macOS binaries which will allow them to
25
25
26
26
We had multiple bug reports from users saying that when they bundle AdoptOpenJDK binaries into their applications, the notarization fails with multiple errors such as the ones below:
27
27
28
-
“message”: “The signature algorithm used is too weak.”,
29
-
“message”: “The executable does not have the hardened runtime enabled.”,
28
+
```text
29
+
“message”: “The signature algorithm used is too weak.”,
30
+
“message”: “The executable does not have the hardened runtime enabled.”,
31
+
```
30
32
31
33
In order to work around this, we have had to enable hardened runtime on our binaries when we codesign them.
32
34
@@ -51,7 +53,7 @@ This requires us to add --options runtime to the codesign command. It also requi
51
53
52
54
If you try and bundle our OpenJDK8 binaries you will receive the following notarization failure:
53
55
54
-
```output
56
+
```text
55
57
"message": "The binary uses an SDK older than the 10.9 SDK.",
0 commit comments