diff --git a/settings.gradle.kts b/settings.gradle.kts index 3aa2a99..9fd1b58 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,5 @@ +import java.util.Properties + dependencyResolutionManagement { versionCatalogs { val kotlinVersion = "1.9.10" @@ -44,3 +46,15 @@ dependencyResolutionManagement { } include(":library") + +val properties = Properties() +val propertiesFile = File("library/gradle.properties") +if (propertiesFile.exists()) { + properties.load(propertiesFile.inputStream()) +} +val PUBLISH_NAME = properties.getProperty("PUBLISH_NAME") + +rootProject.name = PUBLISH_NAME +rootProject.children.forEach { + it.name = PUBLISH_NAME +}