Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ val koverVersion = "0.9.1"
*
* @see <a href="https://github.com/GradleUp/shadow">Shadow Plugin releases</a>
*/
val shadowVersion = "9.2.2"
val shadowVersion = "9.4.1"

/**
* The version of JUnit used to test the build scripts.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025, TeamDev. All rights reserved.
* Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,6 +31,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
/**
* Calls [ShadowJar.mergeServiceFiles] for the files we use in the Spine SDK.
*/
@Suppress("unused")
fun ShadowJar.handleMergingServiceFiles() {
ServiceFiles.all.forEach {
append(it)
Expand All @@ -45,12 +46,21 @@ private object ServiceFiles {
*/
private const val descriptorSetReferences = "desc.ref"

/**
* The resource directory where service provider files are stored.
*/
private const val servicesDir = "META-INF/services"

/**
* Providers of custom Protobuf options introduced by the libraries.
*/
private const val optionProviders = "$servicesDir/io.spine.option.OptionsProvider"

/**
* Message validators provided by the libraries.
*/
private const val messageValidators = "$servicesDir/io.spine.validation.MessageValidator"

/**
* KSP symbol processor provider.
*/
Expand All @@ -69,6 +79,7 @@ private object ServiceFiles {
val all = arrayOf(
descriptorSetReferences,
optionProviders,
messageValidators,
kspSymbolProcessorProviders,
commandRoutingSetupClasses,
eventRoutingSetupClasses,
Expand Down
Loading