Skip to content

Commit b8947fe

Browse files
committed
Support plugin description
Signed-off-by: Tom Sellman <[email protected]>
1 parent 51cf42f commit b8947fe

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Apply and configure this plugin in your `build.gradle` file, for example:
1414

1515
```gradle
1616
plugins {
17-
id 'io.nextflow.nextflow-plugin' version '0.0.1-alpha3'
17+
id 'io.nextflow.nextflow-plugin' version '0.0.1-alpha5'
1818
}
1919
2020
dependencies {
@@ -26,9 +26,10 @@ version = '0.0.1'
2626
2727
nextflowPlugin {
2828
// minimum nextflow version
29-
nextflowVersion = '24.11.0-edge'
29+
nextflowVersion = '25.04.0'
3030
31-
provider = 'example-inc'
31+
provider = 'Example Inc'
32+
description = 'My example plugin'
3233
className = 'com.example.ExamplePlugin'
3334
extensionPoints = [
3435
'com.example.ExampleObserver',

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'io.nextflow'
9-
version = '0.0.1-alpha4'
9+
version = '0.0.1-alpha5'
1010

1111
repositories {
1212
mavenCentral()

src/main/groovy/io/nextflow/gradle/NextflowPluginConfig.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ class NextflowPluginConfig {
3434
*/
3535
String provider
3636

37+
/**
38+
* Description of this plugin.
39+
* (optional)
40+
*/
41+
String description
42+
3743
/**
3844
* What class should be created when the plugin is loaded?
3945
*/

src/main/groovy/io/nextflow/gradle/PluginManifest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class PluginManifest {
2727
if (config.provider) {
2828
jar.manifest.attributes('Plugin-Provider': config.provider)
2929
}
30+
if (config.description) {
31+
jar.manifest.attributes('Plugin-Description': config.description)
32+
}
3033
if (!config.requirePlugins.isEmpty()) {
3134
jar.manifest.attributes('Plugin-Dependencies': config.requirePlugins)
3235
}

0 commit comments

Comments
 (0)