Skip to content

Commit 62a8991

Browse files
committed
ci: alter publish task to be more specific
1 parent acd643c commit 62a8991

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/upload-artifacts-to-sonatype.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Publish and close Sonatype repository
5858
run: |
59-
./gradlew clean publishToSonatype publishReleasePublicationToSonatype closeSonatypeStagingRepository -Dorg.gradle.parallel=false --no-build-cache --no-configuration-cache --stacktrace
59+
./gradlew clean :embrace-gradle-plugin:publishToSonatype publishReleasePublicationToSonatype closeSonatypeStagingRepository -Dorg.gradle.parallel=false --no-build-cache --no-configuration-cache --stacktrace
6060
6161
- name: Publish git tag
6262
run: |

embrace-gradle-plugin-integration-tests/build.gradle.kts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ tasks.withType(Test::class.java).configureEach {
3939
group = "io.embrace"
4040
version = project.properties["version"] as String
4141

42-
if (!gradle.startParameter.taskNames.any { it == "publishToSonatype" || it == "closeSonatypeStagingRepository" }) {
43-
gradlePlugin {
44-
plugins {
45-
create("integrationTestPlugin") {
46-
id = "io.embrace.android.testplugin"
47-
implementationClass =
48-
"io.embrace.android.gradle.integration.framework.IntegrationTestPlugin"
49-
}
42+
gradlePlugin {
43+
plugins {
44+
create("integrationTestPlugin") {
45+
id = "io.embrace.android.testplugin"
46+
implementationClass =
47+
"io.embrace.android.gradle.integration.framework.IntegrationTestPlugin"
5048
}
5149
}
5250
}

0 commit comments

Comments
 (0)