fix to work with gradle 7.4

This commit is contained in:
Taah 2022-04-10 15:41:07 -07:00
parent dc616b2ea5
commit 0c3c9daa64
4 changed files with 14 additions and 5 deletions

View file

@ -52,8 +52,17 @@ publishing {
from(components["java"])
}
}
}
repositories {
maven {
url = uri("https://nexus.telesphoreo.me/repository/gradle-plugins-snapshots")
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
}
}
}
pluginBundle {
website = url
vcsUrl = url

View file

@ -1,5 +1,5 @@
group = net.minecrell
name = plugin-yml
version = 0.6.0-SNAPSHOT
version = 0.6.1-SNAPSHOT
description = A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord/Nukkit plugins based on the Gradle project
url = https://github.com/Minecrell/plugin-yml

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View file

@ -43,8 +43,8 @@ class BukkitPlugin : PlatformPlugin<BukkitPluginDescription>("Bukkit", "plugin.y
description.description = description.description ?: project.description
description.website = description.website ?: project.findProperty("url")?.toString()
description.author = description.author ?: project.findProperty("author")?.toString()
description.libraries = description.libraries ?: libraries!!.resolvedConfiguration.firstLevelModuleDependencies
.map { it.module.id.toString() }
description.libraries = description.libraries ?: libraries!!.allDependencies
.map { it.group + ":" + it.name + ":" + it.version }
}
override fun validate(description: BukkitPluginDescription) {