-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
50 additions
and
31 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
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
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
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
android { | ||
compileSdkVersion 30 | ||
buildToolsVersion '30.0.2' | ||
|
||
defaultConfig { | ||
minSdkVersion 19 | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
systemProp.org.gradle.internal.publish.checksums.insecure=true | ||
android.useAndroidX=true | ||
kotlin.code.style=official | ||
org.gradle.jvmargs=-Xmx2048m |
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
apply plugin: 'xyz.tynn.android.maven' | ||
apply plugin: 'xyz.tynn.android.sources' | ||
if (project != rootProject) publishing { | ||
apply plugin: 'xyz.tynn.android.maven' | ||
apply plugin: 'xyz.tynn.android.sources' | ||
apply plugin: 'signing' | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "bintray" | ||
url = 'https://api.bintray.com/maven/tynn-xyz/maven/AString/;publish=1' | ||
credentials { | ||
username System.env.BINTRAY_USER | ||
password System.env.BINTRAY_KEY | ||
} | ||
} | ||
signing { | ||
final signingKey = System.env.SIGNING_KEY | ||
final signingPassword = System.env.SIGNING_PASSWORD | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
} | ||
|
||
publications.all { | ||
signing.sign it | ||
pom { | ||
name = 'AString' | ||
description = 'A context aware string abstraction for Android' | ||
url = System.env.PROJECT_URL | ||
developers { | ||
developer { | ||
id = 'tynn' | ||
name = 'Christian Schmitz' | ||
email = '[email protected]' | ||
} | ||
} | ||
licenses { | ||
|
@@ -26,6 +28,17 @@ publishing { | |
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
scm { | ||
url = System.env.PROJECT_URL | ||
} | ||
} | ||
} | ||
} else nexusPublishing { | ||
repositories { | ||
sonatype { | ||
final baseUrl = "https://s01.oss.sonatype.org" | ||
nexusUrl.set(uri("$baseUrl/service/local/")) | ||
snapshotRepositoryUrl.set(uri("$baseUrl/content/repositories/snapshots/")) | ||
} | ||
} | ||
} |