forked from WebsiteBeaver/android-document-scanner
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87b7386
commit 9eeb173
Showing
1 changed file
with
5 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
} |