diff --git a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/SpongePluginGradle.java b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/SpongePluginGradle.java index 90d431d..5c9ddd3 100644 --- a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/SpongePluginGradle.java +++ b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/SpongePluginGradle.java @@ -215,6 +215,7 @@ private void configurePluginMetaGeneration(final SpongePluginExtension sponge) { sponge.plugins().configureEach(plugin -> { plugin.getDisplayName().convention(this.project.provider(this.project::getName)); plugin.getVersion().convention(this.project.provider(() -> String.valueOf(this.project.getVersion()))); + plugin.getDescription().convention(this.project.provider(() -> this.project.getDescription())); plugin.getDependencies().matching(dep -> dep.getName().equals(Constants.Dependencies.SPONGE_API)) .configureEach(dep -> dep.getVersion().convention(sponge.apiVersion())); }); diff --git a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginContributorConfiguration.java b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginContributorConfiguration.java index 7c2f0f8..12352b4 100644 --- a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginContributorConfiguration.java +++ b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginContributorConfiguration.java @@ -28,6 +28,7 @@ import org.gradle.api.model.ObjectFactory; import org.gradle.api.provider.Property; import org.gradle.api.tasks.Input; +import org.gradle.api.tasks.Optional; import javax.inject.Inject; @@ -50,6 +51,7 @@ public String getName() { } @Input + @Optional public Property getDescription() { return this.description; } diff --git a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginDependencyConfiguration.java b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginDependencyConfiguration.java index da93abb..e763cdd 100644 --- a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginDependencyConfiguration.java +++ b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginDependencyConfiguration.java @@ -28,6 +28,7 @@ import org.gradle.api.model.ObjectFactory; import org.gradle.api.provider.Property; import org.gradle.api.tasks.Input; +import org.gradle.api.tasks.Optional; import org.spongepowered.plugin.metadata.PluginDependency; import javax.inject.Inject; @@ -66,6 +67,7 @@ public void version(final String version) { } @Input + @Optional public Property getLoadOrder() { return this.loadOrder; } @@ -75,6 +77,7 @@ public void loadOrder(final PluginDependency.LoadOrder loadOrder) { } @Input + @Optional public Property getOptional() { return this.optional; } diff --git a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginLinksConfiguration.java b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginLinksConfiguration.java index af2051d..74bacb1 100644 --- a/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginLinksConfiguration.java +++ b/plugin-development/src/main/java/org/spongepowered/gradle/plugin/config/PluginLinksConfiguration.java @@ -27,6 +27,7 @@ import org.gradle.api.model.ObjectFactory; import org.gradle.api.provider.Property; import org.gradle.api.tasks.Input; +import org.gradle.api.tasks.Optional; import java.net.MalformedURLException; import java.net.URL; @@ -47,6 +48,7 @@ public PluginLinksConfiguration(final ObjectFactory factory) { } @Input + @Optional public Property getHomepage() { return this.homepage; } @@ -56,6 +58,7 @@ public void homepage(final String homepage) throws MalformedURLException { } @Input + @Optional public Property getSource() { return this.source; } @@ -65,6 +68,7 @@ public void source(final String source) throws MalformedURLException { } @Input + @Optional public Property getIssues() { return this.issues; }