Skip to content

Commit

Permalink
publish maven
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Dec 2, 2023
1 parent b7671ab commit 6d2e9a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 38 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ jobs:
run: make apackage
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Publish package
run: ./gradlew -Pmapbox.abis=all publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 7 additions & 38 deletions gradle/gradle-bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apply plugin: 'digital.wup.android-maven-publish'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.jfrog.artifactory'
apply from: file('../gradle/artifact-settings.gradle')

version = project.ext.versionName
Expand Down Expand Up @@ -42,48 +40,19 @@ publishing {
}
}
}
}

bintray {
user = mapboxBintrayUser
key = mapboxBintrayApiKey
publications('MapboxMapsSdkPublication')
pkg {
repo = project.ext.mapboxBintrayRepoName
name = project.ext.mapboxBintrayPackageName
userOrg = project.ext.mapboxBintrayUserOrg
licenses = [project.ext.mapboxArtifactLicenseName]
vcsUrl = project.ext.mapboxArtifactVcsUrl
publish = false
version {
name = project.ext.versionName
desc = project.ext.mapboxArtifactDescription
released = new Date()
gpg {
sign = true
passphrase = mapboxGpgPassphrase
}
mavenCentralSync {
sync = false
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/ev-map/mapbox-gl-native-android"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

artifactory {
contextUrl = 'http://oss.jfrog.org'
publish {
repository {
repoKey = 'oss-snapshot-local'
username = mapboxBintrayUser
password = mapboxBintrayApiKey
}
defaults {
publications('MapboxMapsSdkPublication')
}
}
}

task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles
classpath = files(android.bootClasspath)
Expand Down

0 comments on commit 6d2e9a1

Please sign in to comment.