Skip to content

Commit

Permalink
[android] Add upload to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-efremov committed Jan 25, 2023
1 parent e649ecb commit c2e4fcf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions X2tConverter/build/Android/libx2t/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ import com.android.build.gradle.internal.tasks.factory.dependsOn
plugins {
id("com.android.library")
kotlin("android")
id("maven-publish")
}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = PublishEditors.groupId
artifactId = PublishEditors.x2tId
version = PublishEditors.version
artifact("$buildDir/outputs/aar/lib${artifactId}-release.aar")
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("${PublishEditors.publishUrl}/")
credentials {
// username = ""
// password = ""
}
}
}
}

android {
Expand All @@ -11,6 +33,11 @@ android {
compileSdk = AppDependency.COMPILE_SDK_VERSION
ndkVersion = rootProject.extra.get("NDK_VERSION").toString()

publishing {
singleVariant("release") {
}
}

defaultConfig {
minSdk = AppDependency.MIN_SDK_VERSION
targetSdk = AppDependency.TARGET_SDK_VERSION
Expand Down

0 comments on commit c2e4fcf

Please sign in to comment.