fix missing dep

This commit is contained in:
Stefan
2025-07-26 03:48:13 +02:00
parent da52566a3b
commit 7e38e489f8
2 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "zen-uniffi"
version = "0.1.4"
version = "0.1.5"
edition = "2024"
license = "MIT"
publish = false
+15 -3
View File
@@ -119,7 +119,7 @@ publishing {
artifact(tasks["generateJavaSourcesJar"])
artifact(tasks["javadocJarJava"])
configurePom()
configurePom(configurations["implementation"])
}
create<MavenPublication>("mavenKotlin") {
@@ -129,7 +129,7 @@ publishing {
artifact(tasks["generateKotlinSourcesJar"])
artifact(tasks["javadocJarKotlin"])
configurePom()
configurePom(configurations["implementation"])
}
}
repositories {
@@ -170,7 +170,7 @@ fun loadCargoVersion(): String {
?: throw GradleException("Version not found in Cargo.toml")
}
fun MavenPublication.configurePom() {
fun MavenPublication.configurePom(configuration: Configuration) {
pom {
name = "GoRules ZEN Engine"
description = "GoRules ZEN Engine is a cross-platform, Open-Source Business Rules Engine (BRE)"
@@ -198,5 +198,17 @@ fun MavenPublication.configurePom() {
scm {
url = "https://github.com/gorules/zen"
}
withXml {
val dependenciesNode = asNode().appendNode("dependencies")
configuration.allDependencies.forEach { dep ->
val dependencyNode = dependenciesNode.appendNode("dependency")
dependencyNode.appendNode("groupId", dep.group)
dependencyNode.appendNode("artifactId", dep.name)
dependencyNode.appendNode("version", dep.version)
dependencyNode.appendNode("scope", "runtime")
}
}
}
}