Skip to content

Commit a993318

Browse files
authored
Merge pull request #1182 from mikepenz/feature/1173
Add new task to export funding information
2 parents f0b659b + 2c6c4c4 commit a993318

File tree

14 files changed

+6967
-39
lines changed

14 files changed

+6967
-39
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ aboutLibraries {
120120

121121
// Enable fetching of "remote" licenses. Uses the API of supported source hosts
122122
// See https://github.com/mikepenz/AboutLibraries#special-repository-support
123-
fetchRemoteLicense = true
123+
// A `gitHubApiToken` is required for this to work as it fetches information from GitHub's API.
124+
fetchRemoteLicense = false
124125

125126
// Enables fetching of "remote" funding information. Uses the API of supported source hosts
126127
// See https://github.com/mikepenz/AboutLibraries#special-repository-support
127-
fetchRemoteFunding = true
128+
// A `gitHubApiToken` is required for this to work as it fetches information from GitHub's API.
129+
fetchRemoteFunding = false
128130

129131
// Allows to only collect dependencies of specific variants during the `collectDependencies` step.
130132
// filterVariants.addAll("debug", "release")
@@ -147,7 +149,7 @@ aboutLibraries {
147149
// Enable pretty printing for the generated JSON file
148150
prettyPrint = true
149151
}
150-
152+
151153
exports {
152154
// Define export configuration per variant.
153155
create("jvm") {
@@ -187,7 +189,9 @@ aboutLibraries {
187189
```
188190

189191
Full documentation of all available gradle plugin
190-
configurations can be found in the [AboutLibrariesExtension.kt](https://github.com/mikepenz/AboutLibraries/blob/develop/plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesExtension.kt) source file.
192+
configurations can be found in
193+
the [AboutLibrariesExtension.kt](https://github.com/mikepenz/AboutLibraries/blob/develop/plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesExtension.kt)
194+
source file.
191195

192196
</p>
193197
</details>
@@ -201,6 +205,16 @@ The plugin offers the ability to add or override library and license details by
201205
in the `libraries` and `licenses` directories within the configured `configPath`.
202206
See the [config directory](https://github.com/mikepenz/AboutLibraries/blob/develop/config/) for examples.
203207

208+
## Provide funding information
209+
210+
The plugin offers the ability to add or override funding details by placing a `funding.json` JSON file in the `funding` directory within the configured `configPath`.
211+
Alternatively the `exportFunding` task can be used to generate this data automatically (ensure to provide a GitHub API Key).
212+
The task will automatically write the file in the respective folder. Note: It will overwrite the file if it already exists.
213+
214+
```bash
215+
./gradlew app:exportFunding
216+
```
217+
204218
### Libraries
205219

206220
Provide additional or modify existing libraries via a `.json` file per library.
@@ -502,7 +516,8 @@ Create a custom style for the AboutLibraries UI.
502516

503517
## Enterprise / Manual JSON Handling
504518

505-
For environments requiring full control over the included `aboutlibraries.json` (e.g., manual verification, CI generation), you can disable automatic task registration and handle generation manually.
519+
For environments requiring full control over the included `aboutlibraries.json` (e.g., manual verification, CI generation), you can disable automatic task registration and handle
520+
generation manually.
506521

507522
```kts
508523
// build.gradle.kts

app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ aboutLibraries {
168168
// (optional) GitHub token to raise API request limit to allow fetching more licenses
169169
gitHubApiToken = if (hasProperty("github.pat")) property("github.pat")?.toString() else null
170170

171+
// Set to offline mode, skipping remote requests to fetch licenses or funding information
172+
// offlineMode = true
173+
171174
// enable fetching of "remote" licenses. Uses the GitHub API
172-
fetchRemoteLicense = true
175+
fetchRemoteLicense = false
173176

174177
// Allows to only collect dependencies of specific variants during the `collectDependencies` step.
175178
// filterVariants.addAll("debug")

0 commit comments

Comments
 (0)