Skip to content

Commit 0849851

Browse files
committed
fix: gradle dependency issue
1 parent f06df81 commit 0849851

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

RELEASING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ The release workflow uses a GPG key to sign artifacts when publishing to Maven C
139139
- Length: 4096
140140
- Remove expiration
141141
- Upload the key to a public server after creation
142+
- List your keys - `gpg --list-secret-keys`
143+
- Export the private key (ASCII armored) - `gpg --export-secret-keys --armor $ID` (Including the 'BEGIN PGP PRIVATE KEY BLOCK' and 'END PGP PRIVATE KEY BLOCK' lines)
142144

143145
2. **Update GitHub org secrets**:
144146
- Request temporary access if needed

posthog-android-gradle-plugin/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,22 @@ publishing {
126126
}
127127
}
128128

129+
// Fix task dependencies for signing
130+
afterEvaluate {
131+
tasks.withType<PublishToMavenRepository> {
132+
dependsOn(tasks.withType<Sign>())
133+
}
134+
135+
// Fix specific plugin marker publication dependencies
136+
tasks.findByName("publishPluginMavenPublicationToMavenLocal")?.dependsOn(
137+
"signPostHogAndroidPluginPluginMarkerMavenPublication"
138+
)
139+
tasks.findByName("publishPostHogAndroidPluginPluginMarkerMavenPublicationToMavenLocal")?.dependsOn(
140+
"signPostHogAndroidPluginPluginMarkerMavenPublication",
141+
"signPluginMavenPublication"
142+
)
143+
}
144+
129145
dependencies {
130146
compileOnly(gradleApi())
131147
// pinned to 8.0.x so we compile against the min. supported version.

0 commit comments

Comments
 (0)