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/develop.md
+12-22
Original file line number
Diff line number
Diff line change
@@ -77,20 +77,6 @@ those sections for [resolving dependencies](#resolving-dependencies).
77
77
contributed library Processing, after being installed. Please look at our
78
78
[troubleshooting guide](troubleshooting.md) if you suspect this is the case.
79
79
80
-
4.**Define the `version` of your library in `build.gradle.kts`.** This value will also be
81
-
included in the release artifact `library.properties`. The version of your library usually
82
-
follows semantic versioning (semver), which uses three numbers separated by dots:
83
-
"MAJOR.MINOR.PATCH" (e.g., "1.0.0").
84
-
85
-
- MAJOR: Increases when you make incompatible changes.
86
-
- MINOR: Increases when you add new features that are backward-compatible.
87
-
- PATCH: Increases when you make backward-compatible bug fixes.
88
-
89
-
You will update these numbers as you release new versions of your library.
90
-
91
-
!!! Note
92
-
If you [release your library on Github](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository),
93
-
the prettyVersion field in your release artifacts will reflect your release tag instead of the `version` defined in `build.gradle.kts`, as a helpful automation.
94
80
95
81
## Creating examples
96
82
Examples help users understand your library’s functionality, it is recommended that you include several clear and well-commented samples sketches in the `examples` folder.
@@ -99,16 +85,13 @@ Examples help users understand your library’s functionality, it is recommended
99
85
The example sketch included in this template outputs the image shown on the home page.
100
86
101
87
## Creating the release artifacts
102
-
If you've already gone through the [Getting started](getting-started.md#first-steps) guide, you will have
103
-
already run Gradle tasks, and edited the `release.properties` file.
104
88
105
-
1. Fill in the file `release.properties` with information for your library. This information will be
106
-
used by Gradle to create the `library.properties` file, which is one of the required release
107
-
artifacts, used by the website and Contribution Manager to describe your library. In the file itself,
108
-
There are comments to guide you. To create just the `library.properties` file without building the
89
+
1. Fill in the file `release.properties` with information for your library. In the file itself,
90
+
There are comments to guide you. This information will be used by Gradle to create the
91
+
`library.properties` file, which is one of the required release artifacts, used by the website
92
+
and Contribution Manager to describe your library. To create just the `library.properties` file without building the
109
93
library, toggle `Tasks` > `processing` and double click `writeLibraryProperties`. This task will
110
-
copy all the values in `release.properties`, and also include the `version` in your `build.gradle.kts`
111
-
file as `prettyVersion`.
94
+
copy all the values in `release.properties`.
112
95
2.**To build the library and create the release artifacts, run the Gradle task `buildReleaseArtifacts`.**
113
96
This task will create a `release` folder with needed artifacts. To do this, go to the Gradle menu
114
97
(elephant), toggle `Tasks` > `processing` and double click `buildReleaseArtifacts`. This task
@@ -124,6 +107,13 @@ already run Gradle tasks, and edited the `release.properties` file.
124
107
`deployToProcessingSketchbook`, which will create the release artifacts, and copy them into the
125
108
sketchbook folder.
126
109
110
+
111
+
!!! Note
112
+
If you [release your library on Github](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository),
113
+
your release tag will be used for the value of the `prettyVersion` field, overwriting the value for `prettyVersion`
114
+
defined in `release.properties`, as a helpful automation.
Copy file name to clipboardExpand all lines: docs/release.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ This will trigger the GitHub workflow (`.github/workflows/release.yml`), which a
48
48
49
49
!!! Important
50
50
The release tag created on Github will be propagated to the release artifacts.
51
-
Specifically the tag, without the leading `v`, will be used for the `prettyVersion` in the txt file and `library.properties` file in the zip. This overwrites the value input for `version` in the `build.gradle.kts` file.
51
+
Specifically the tag, without the leading `v`, will be used for the `prettyVersion` in the txt file and `library.properties` file in the zip. This overwrites the value input for `prettyVersion` in the `release.properties` file.
52
52
53
53
!!! Note
54
54
By default, GitHub will also include compressed versions of your source code (e.g., `Source code (zip)` and `Source code (tar.gz)`).
0 commit comments