Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Commit 424853a

Browse files
committed
build: Update Gradle wrapper to 8.0.1
1 parent 30993bd commit 424853a

6 files changed

Lines changed: 37 additions & 36 deletions

File tree

build.gradle.kts

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
plugins {
22
`java-gradle-plugin`
33
`kotlin-dsl`
4-
`maven-publish`
5-
id("com.gradle.plugin-publish") version "0.21.0"
4+
id("com.gradle.plugin-publish") version "1.1.0"
65
id("org.cadixdev.licenser") version "0.6.1"
76
}
87

@@ -13,50 +12,37 @@ repositories {
1312
}
1413

1514
dependencies {
16-
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3") {
15+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2") {
1716
exclude(group = "org.jetbrains.kotlin")
1817
}
19-
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3")
20-
}
21-
22-
java {
23-
withSourcesJar()
18+
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2")
2419
}
2520

2621
gradlePlugin {
22+
website.set(url)
23+
vcsUrl.set(url)
24+
2725
plugins {
2826
register("bukkit") {
2927
id = "net.minecrell.plugin-yml.bukkit"
3028
displayName = "plugin-yml (Bukkit)"
3129
description = "Generate plugin.yml for Bukkit plugins based on the Gradle project"
3230
implementationClass = "net.minecrell.pluginyml.bukkit.BukkitPlugin"
31+
tags.set(listOf("bukkit"))
3332
}
3433
register("bungee") {
3534
id = "net.minecrell.plugin-yml.bungee"
3635
displayName = "plugin-yml (BungeeCord)"
3736
description = "Generate bungee.yml for BungeeCord plugins based on the Gradle project"
3837
implementationClass = "net.minecrell.pluginyml.bungee.BungeePlugin"
38+
tags.set(listOf("bungee"))
3939
}
4040
register("nukkit") {
4141
id = "net.minecrell.plugin-yml.nukkit"
4242
displayName = "plugin-yml (Nukkit)"
4343
description = "Generate nukkit.yml for Nukkit plugins based on the Gradle project"
4444
implementationClass = "net.minecrell.pluginyml.nukkit.NukkitPlugin"
45+
tags.set(listOf("nukkit"))
4546
}
4647
}
4748
}
48-
49-
publishing {
50-
publications {
51-
register<MavenPublication>("mavenJava") {
52-
from(components["java"])
53-
}
54-
}
55-
}
56-
57-
pluginBundle {
58-
website = url
59-
vcsUrl = url
60-
description = project.description
61-
tags = listOf("bukkit", "bungee", "nukkit")
62-
}

gradle/wrapper/gradle-wrapper.jar

1.75 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/kotlin/net/minecrell/pluginyml/PlatformPlugin.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@ abstract class PlatformPlugin<T : PluginDescription>(private val platformName: S
4141

4242
protected open fun createConfiguration(project: Project): Configuration? {
4343
val library = project.configurations.maybeCreate("library")
44-
return project.configurations.create("${platformName.decapitalize()}Library").extendsFrom(library)
44+
val prefix = platformName.replaceFirstChar(Char::lowercase)
45+
return project.configurations.create("${prefix}Library").extendsFrom(library)
4546
}
4647

4748
final override fun apply(project: Project) {
4849
project.run {
4950
val description = createExtension(this)
5051

5152
// Add extension
52-
extensions.add(platformName.decapitalize(), description)
53+
extensions.add(platformName.replaceFirstChar(Char::lowercase), description)
5354

5455
val generatedResourcesDirectory = layout.buildDirectory.dir("generated/plugin-yml/$platformName")
5556

0 commit comments

Comments
 (0)