Skip to content

Commit

Permalink
Updated build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsYipYip committed Oct 4, 2023
1 parent 87b7386 commit 9eeb173
Showing 1 changed file with 5 additions and 47 deletions.
52 changes: 5 additions & 47 deletions documentscanner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 30
namespace "com.websitebeaver.documentscanner"
archivesBaseName = "android-document-scanner"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -50,58 +52,14 @@ dependencies {
publishing {
publications {
release(MavenPublication) {
groupId = "com.websitebeaver"
artifactId = "documentscanner"
version = "1.3.5"
groupId = "com.github.LarsYipYip"
artifactId = "android-document-scanner"
version = "1.3.6"

afterEvaluate {
from components.release

pom {
name = 'Document Scanner'
description = 'Document Scanner'
url = 'https://github.com/websitebeaver/android-document-scanner'
licenses {
license {
name = 'The MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'dmarcs'
name = 'David Marcus'
email = '[email protected]'
}
}
scm {
connection = 'scm:[email protected]:websitebeaver/android-document-scanner.git'
developerConnection = 'scm:[email protected]:websitebeaver/android-document-scanner.git'
url = 'https://github.com/websitebeaver/android-document-scanner'
}
}
}
}
}

repositories {
maven {
name = "mavencentral"
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl

credentials {
username findProperty("ossrhUsername")
password findProperty("ossrhPassword")
}
}
}
}

signing {
def signingKey = findProperty("ossrhSigningKey")
def signingPassword = findProperty("ossrhSigningPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.release
}

0 comments on commit 9eeb173

Please sign in to comment.