We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe7563 commit 2778b94Copy full SHA for 2778b94
src/main/groovy/ru/endlesscode/bukkitgradle/meta/PluginMeta.groovy
@@ -11,9 +11,12 @@ class PluginMeta {
11
final MetaItem url
12
final MetaItem authors
13
14
+ private final Project project
15
private final List<MetaItem> metaItems = []
16
17
PluginMeta(Project project) {
18
+ this.project = project
19
+
20
this.name = new MetaItem("name", true, project.name)
21
this.description = new MetaItem("description", { project.description })
22
this.main = new MetaItem("main", true, { "${project.group}.${getName().toLowerCase()}.${getName()}" })
@@ -26,6 +29,7 @@ class PluginMeta {
26
29
27
30
void setName(def name) {
28
31
this.name.value = name
32
+ project.archivesBaseName = getName()
33
}
34
35
String getName() {
0 commit comments