mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 16:25:06 +00:00
Collapse examples in README
This commit is contained in:
parent
40b86ec3d1
commit
a1ff0b1ab5
1 changed files with 21 additions and 8 deletions
29
README.md
29
README.md
|
@ -1,7 +1,8 @@
|
||||||
# plugin-yml
|
# plugin-yml
|
||||||
[plugin-yml] is a simple Gradle plugin that generates the `plugin.yml` plugin description file for Bukkit plugins,
|
[plugin-yml] is a simple Gradle plugin that generates the `plugin.yml` plugin description file for Bukkit plugins,
|
||||||
`bungee.yml` for Bungee plugins or `nukkit.yml` for Nukkit plugins based on the Gradle project. Various properties are set automatically (e.g. project
|
`bungee.yml` for Bungee plugins or `nukkit.yml` for Nukkit plugins based on the Gradle project. Various properties
|
||||||
name, version or description) and additional properties can be added using a simple DSL.
|
are set automatically (e.g. project name, version or description) and additional properties can be added using a
|
||||||
|
simple DSL.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
[plugin-yml] requires at least **Gradle 4.2**. Using the latest version of Gradle is recommended.
|
[plugin-yml] requires at least **Gradle 4.2**. Using the latest version of Gradle is recommended.
|
||||||
|
@ -18,7 +19,8 @@ name, version or description) and additional properties can be added using a sim
|
||||||
|
|
||||||
### Bukkit
|
### Bukkit
|
||||||
|
|
||||||
#### Groovy
|
<details>
|
||||||
|
<summary><strong>Groovy</strong></summary>
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -70,8 +72,10 @@ bukkit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
#### kotlin-dsl
|
<details>
|
||||||
|
<summary><strong>kotlin-dsl</strong></summary>
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -123,10 +127,12 @@ bukkit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
### Bungee
|
### Bungee
|
||||||
|
|
||||||
#### Groovy
|
<details>
|
||||||
|
<summary><strong>Groovy</strong></summary>
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -148,8 +154,10 @@ bungee {
|
||||||
softDepends = ['ServerListPlus']
|
softDepends = ['ServerListPlus']
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
#### kotlin-dsl
|
<details>
|
||||||
|
<summary><strong>kotlin-dsl</strong></summary>
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -171,10 +179,12 @@ bungee {
|
||||||
softDepends = setOf("ServerListPlus")
|
softDepends = setOf("ServerListPlus")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
### Nukkit
|
### Nukkit
|
||||||
|
|
||||||
#### Groovy
|
<details>
|
||||||
|
<summary><strong>Groovy</strong></summary>
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -222,8 +232,10 @@ bukkit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
#### kotlin-dsl
|
<details>
|
||||||
|
<summary><strong>kotlin-dsl</strong></summary>
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -271,5 +283,6 @@ bukkit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
[plugin-yml]: https://github.com/Minecrell/plugin-yml
|
[plugin-yml]: https://github.com/Minecrell/plugin-yml
|
||||||
|
|
Loading…
Reference in a new issue