Skip to content

Commit

Permalink
hopefully fixed maven android publication
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-baumann committed Feb 17, 2024
1 parent 84711f0 commit 300c988
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions bindings/kotlin/DataRCT/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ android {
// XXX: I've been trying to make this work but I can't, so the compiled bindings will show as "regular sources" in Android Studio.
idea.module.generatedSourceDirs += file("${buildDir}/generated/source/uniffi/${variant.name}/java/uniffi")
}

publishing {
singleVariant("release") {
// if you don't want sources/javadoc, remove these lines
withSourcesJar()
withJavadocJar()
}
}
}

publishing {
Expand All @@ -58,13 +66,15 @@ publishing {
}
}
}

publications {
release(MavenPublication) {
from components.findByName('release')
version = System.getenv("VERSION")
groupId = "com.julian_baumann"
artifactId = "data_rct"

afterEvaluate {
from components.release
}
}
}
}
Expand Down

0 comments on commit 300c988

Please sign in to comment.