mirror of
https://github.com/PaperMC/Paper.git
synced 2025-11-18 20:54:27 +01:00
Update Gradle wrapper
This commit is contained in:
parent
aec01128cd
commit
1eb13b0290
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@ -54,30 +54,27 @@ tasks.generateDevelopmentBundle {
|
||||
}
|
||||
|
||||
abstract class Services {
|
||||
@get:Inject
|
||||
abstract val softwareComponentFactory: SoftwareComponentFactory
|
||||
|
||||
@get:Inject
|
||||
abstract val archiveOperations: ArchiveOperations
|
||||
}
|
||||
val services = objects.newInstance<Services>()
|
||||
|
||||
if (project.providers.gradleProperty("publishDevBundle").isPresent) {
|
||||
val devBundleComponent = services.softwareComponentFactory.adhoc("devBundle")
|
||||
val devBundleComponent = publishing.softwareComponentFactory.adhoc("devBundle")
|
||||
components.add(devBundleComponent)
|
||||
|
||||
val devBundle = configurations.consumable("devBundle") {
|
||||
attributes.attribute(DevBundleOutput.ATTRIBUTE, objects.named(DevBundleOutput.ZIP))
|
||||
outgoing.artifact(tasks.generateDevelopmentBundle.flatMap { it.devBundleFile })
|
||||
}
|
||||
devBundleComponent.addVariantsFromConfiguration(devBundle.get()) {}
|
||||
devBundleComponent.addVariantsFromConfiguration(devBundle) {}
|
||||
|
||||
val runtime = configurations.consumable("serverRuntimeClasspath") {
|
||||
attributes.attribute(DevBundleOutput.ATTRIBUTE, objects.named(DevBundleOutput.SERVER_DEPENDENCIES))
|
||||
attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
|
||||
extendsFrom(configurations.runtimeClasspath.get())
|
||||
}
|
||||
devBundleComponent.addVariantsFromConfiguration(runtime.get()) {
|
||||
devBundleComponent.addVariantsFromConfiguration(runtime) {
|
||||
mapToMavenScope("runtime")
|
||||
}
|
||||
|
||||
@ -86,7 +83,7 @@ if (project.providers.gradleProperty("publishDevBundle").isPresent) {
|
||||
attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_API))
|
||||
extendsFrom(configurations.compileClasspath.get())
|
||||
}
|
||||
devBundleComponent.addVariantsFromConfiguration(compile.get()) {
|
||||
devBundleComponent.addVariantsFromConfiguration(compile) {
|
||||
mapToMavenScope("compile")
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user