Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
4 changes: 0 additions & 4 deletions scripts/android/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ task androidSourcesJar(type: Jar) {
}
}

artifacts {
archives androidSourcesJar
}

group = 'com.capacitorjs'
version = LIB_VERSION

Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ publish_plugin_android () {
export PLUGIN_SCM="github.com:ionic-team/capacitor-camera"

# Build and publish
"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
(cd "$ANDROID_PATH" && ./gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -Pandroid.useAndroidX=true) > $LOG_OUTPUT 2>&1

if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
printf %"s\n\n" "Success: $PLUGIN_NAME published to MavenCentral."
Expand Down
Loading