Skip to content

Commit 97ace63

Browse files
committed
Tweak release process again
1 parent 9db3b52 commit 97ace63

File tree

6 files changed

+44
-6
lines changed

6 files changed

+44
-6
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ jobs:
117117
name: (Instrumentation) Build & Deploy
118118
command: |
119119
cd instrumentation
120-
./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseStagingRepositories --stacktrace
120+
./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository --info --stacktrace
121121
- run:
122122
name: (Plugin) Build & Deploy
123123
command: |
124124
cd plugin
125-
./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseStagingRepositories --stacktrace
125+
./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository --info --stacktrace
126126
- store_artifacts:
127127
path: plugin/android-junit5/build/publications
128128
destination: plugin/publications/snapshots

build-logic/src/main/kotlin/Deployment.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import org.gradle.api.publish.internal.PublicationInternal
1313
import org.gradle.api.publish.maven.MavenArtifact
1414
import org.gradle.api.publish.maven.MavenPublication
1515
import org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication
16+
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
1617
import org.gradle.api.tasks.SourceSet
1718
import org.gradle.api.tasks.SourceSetContainer
1819
import org.gradle.jvm.tasks.Jar
@@ -143,6 +144,11 @@ private fun Project.configureAndroidDeployment(
143144
}
144145
}
145146
}
147+
148+
// Disable main publication
149+
tasks.withType<AbstractPublishToMaven>().configureEach {
150+
isEnabled = "Main" !in name
151+
}
146152
}
147153

148154
private fun Project.configurePluginDeployment(

instrumentation/.idea/runConfigurations/Publish_Release_Manually.xml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

instrumentation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Change Log
33

44
## Unreleased
55

6-
## 2.0.0 (2025-12-31)
6+
## 2.0.0 (2026-01-01)
77

88
- Removed deprecated `runComposeTest` API from `ComposeExtension`
99
- Update to Kotlin 2.3

plugin/.idea/runConfigurations/Plugin__Publish_Release_Manually.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Change Log
33

44
## Unreleased
55

6-
## 2.0.0 (2025-12-31)
6+
## 2.0.0 (2026-01-01)
77
- Update to Kotlin 2.3
88
- Internal: Replace deprecated `OutputDirectoryProvider` with its correct replacement
99
- Support instrumentation with JUnit 5 and 6 (the plugin will choose the correct runtime accordingly)

0 commit comments

Comments
 (0)