Skip to content

Commit

Permalink
style:
Browse files Browse the repository at this point in the history
bitjerry committed Feb 2, 2024
1 parent 4cf61a7 commit ecdc125
Showing 3 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

## [Unreleased]

## [2.0.2] - 2024-02-02
## [2.0.3] - 2024-02-02

- Supports generating code based on curl command
- Support custom code generation scripts
13 changes: 13 additions & 0 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#### Headers plugin for IntelliJ based IDEs.

[GitHub](https://github.com/bitjerry/Headers/) | [Get Started](https://github.com/bitjerry/Headers/blob/main/README.md)

Read in other languages: English | [简体中文](https://github.com/bitjerry/Headers/blob/main/README.zh-CN.md)

## Features

---
1. Quickly format headers or cookies text copied from the browser into JSON format.
2. Generate request code based on curl commands copied from the browser.
3. Custom code generator.

23 changes: 12 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -60,17 +60,18 @@ tasks {
untilBuild = properties("pluginUntilBuild")

// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"

with (it.lines()) {
if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
}
}
// pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
// val start = "<!-- Plugin description -->"
// val end = "<!-- Plugin description end -->"
//
// with (it.lines()) {
// if (!containsAll(listOf(start, end))) {
// throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
// }
// subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
// }
// }
pluginDescription = providers.fileContents(layout.projectDirectory.file("DESCRIPTION.md")).asText

val changelog = project.changelog // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file

0 comments on commit ecdc125

Please sign in to comment.