Skip to content

Commit

Permalink
feat: add publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
6a209 committed Feb 26, 2025
1 parent ee72103 commit adec641
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android_jni/app/maven-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'




publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
11 changes: 11 additions & 0 deletions android_jni/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id "io.github.gradle-nexus.publish-plugin" version '1.1.0' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}

nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
packageGroup = "com.aliyun"
}
}
}

0 comments on commit adec641

Please sign in to comment.