forked from dariuszseweryn/RxAndroidBle
-
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.
ci: Publish RxAndroidBle fork to Artifactory (DROID-1123) (#6)
* ci: Publish RxAndroidBle fork to Artifactory (DROID-1123) * remove artifactory credentials
- Loading branch information
Ismael Henchi
authored and
Rohan Harrison
committed
Nov 8, 2021
1 parent
6c9d0fd
commit 575362b
Showing
11 changed files
with
52 additions
and
21 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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply plugin: 'maven-publish' | ||
|
||
def isAndroidProject() { | ||
return project.getPlugins().hasPlugin('com.android.application') || project.getPlugins().hasPlugin('com.android.library') | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
aar(MavenPublication) { | ||
if (isAndroidProject()) { | ||
from components.release | ||
} | ||
else { | ||
from components.java | ||
} | ||
|
||
groupId = GROUP | ||
artifactId = POM_ARTIFACT_ID | ||
version = VERSION_NAME | ||
} | ||
} | ||
} | ||
|
||
artifactory { | ||
contextUrl = 'https://proxyco.jfrog.io/proxyco' | ||
publish { | ||
repository { | ||
repoKey = 'android-apps' | ||
username = artifactoryUsername | ||
password = artifactoryPassword | ||
maven = true | ||
publishArtifacts = true | ||
publishPom = true | ||
} | ||
} | ||
} | ||
|
||
artifactoryPublish { | ||
publications(publishing.publications.aar) | ||
} | ||
} |
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