-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration library from bintray to artifactory and add new param in ge…
…tFileList
- Loading branch information
ariefnurputranto
committed
Mar 30, 2021
1 parent
025d923
commit 7847a5e
Showing
11 changed files
with
180 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply plugin: 'maven-publish' | ||
|
||
publishing { | ||
publications { | ||
aar(MavenPublication) { | ||
setGroupId libraryGroupId | ||
artifactId libraryArtifactId | ||
version libraryVersion | ||
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") | ||
|
||
pom.withXml { | ||
def dependencies = asNode().appendNode('dependencies') | ||
configurations.getByName("releaseCompileClasspath").getResolvedConfiguration().getFirstLevelModuleDependencies().each { | ||
if (it.moduleGroup == 'com.android.databinding' || it.moduleVersion == 'unspecified') { | ||
println("ignoring dependency ${it.moduleGroup}:${it.moduleName}:${it.moduleVersion}") | ||
return; | ||
} | ||
|
||
def dependency = dependencies.appendNode('dependency') | ||
dependency.appendNode('groupId', it.moduleGroup) | ||
println(it.moduleGroup) | ||
println(it.moduleVersion) | ||
println(it.moduleName) | ||
dependency.appendNode('artifactId', it.moduleName) | ||
dependency.appendNode('version', it.moduleVersion) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
Properties properties = new Properties() | ||
InputStream inputStream = project.rootProject.file('local.properties').newDataInputStream() | ||
properties.load( inputStream ) | ||
|
||
|
||
artifactory { | ||
contextUrl = properties.getProperty('artifactory_url') | ||
publish { | ||
repository { | ||
repoKey = properties.getProperty('artifactory_repokey') | ||
username = properties.getProperty('artifactory_username') | ||
password = properties.getProperty('artifactory_password') | ||
} | ||
defaults { | ||
publications('aar') | ||
publishArtifacts = true | ||
|
||
properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core'] | ||
publishPom = true | ||
} | ||
} | ||
} | ||
|
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
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,55 @@ | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply plugin: 'maven-publish' | ||
|
||
publishing { | ||
publications { | ||
aar(MavenPublication) { | ||
setGroupId libraryGroupIdChat | ||
artifactId libraryArtifactIdChat | ||
version libraryVersionChat | ||
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") | ||
|
||
pom.withXml { | ||
def dependencies = asNode().appendNode('dependencies') | ||
configurations.getByName("releaseCompileClasspath").getResolvedConfiguration().getFirstLevelModuleDependencies().each { | ||
if (it.moduleGroup == 'com.android.databinding' || it.moduleVersion == 'unspecified') { | ||
println("ignoring dependency ${it.moduleGroup}:${it.moduleName}:${it.moduleVersion}") | ||
return; | ||
} | ||
|
||
def dependency = dependencies.appendNode('dependency') | ||
dependency.appendNode('groupId', it.moduleGroup) | ||
println(it.moduleGroup) | ||
println(it.moduleVersion) | ||
println(it.moduleName) | ||
dependency.appendNode('artifactId', it.moduleName) | ||
dependency.appendNode('version', it.moduleVersion) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
Properties properties = new Properties() | ||
InputStream inputStream = project.rootProject.file('local.properties').newDataInputStream() | ||
properties.load( inputStream ) | ||
|
||
|
||
artifactory { | ||
contextUrl = properties.getProperty('artifactory_url') | ||
publish { | ||
repository { | ||
repoKey = properties.getProperty('artifactory_repokey') | ||
username = properties.getProperty('artifactory_username') | ||
password = properties.getProperty('artifactory_password') | ||
} | ||
defaults { | ||
publications('aar') | ||
publishArtifacts = true | ||
|
||
properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core'] | ||
publishPom = true | ||
} | ||
} | ||
} | ||
|
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