From c7272d192f160ff5c05734994c5d1d07ce4d9284 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 25 Jun 2021 01:24:39 +0100 Subject: [PATCH] set project specific modifyPom --- .../lbry/build/templates/build.tmpl.gradle | 64 +++++++++--------- .../build/templates/build.tmpl.gradle.arm | 65 ++++++++++--------- 2 files changed, 67 insertions(+), 62 deletions(-) diff --git a/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle b/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle index b6b3fee..9761762 100644 --- a/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle +++ b/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle @@ -31,6 +31,39 @@ archivesBaseName = 'lbrysdk' group = "io.lbry" version = "{{ args.version }}" +project(':lbrysdk') { + modifyPom { + project { + name 'LBRY SDK for Android' + description 'The LBRY SDK packaged as an Android AAR' + groupId 'io.lbry' + artifactId 'lbrysdk64' + + scm { + url 'https://github.com/lbryio/lbry-android-sdk' + connection 'scm:https://github.com/lbryio/lbry-android-sdk.git' + developerConnection 'scm:git://github.com/lbryio/lbry-android-sdk.git' + } + + licenses { + license { + name 'MIT License' + url 'https://raw.githubusercontent.com/lbryio/lbry-android-sdk/master/LICENSE' + distribution 'repo' + } + } + + developers { + developer { + id 'shockr' + name 'Akinwale Ariwodola' + email 'akinwale@lbry.com' + } + } + } + } +} + android { compileSdkVersion {{ android_api }} buildToolsVersion '{{ build_tools_version }}' @@ -107,37 +140,6 @@ nexus { snapshotRepositoryUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } -modifyPom { - project { - name 'LBRY SDK for Android' - description 'The LBRY SDK packaged as an Android AAR' - groupId 'io.lbry' - artifactId 'lbrysdk64' - - scm { - url 'https://github.com/lbryio/lbry-android-sdk' - connection 'scm:https://github.com/lbryio/lbry-android-sdk.git' - developerConnection 'scm:git://github.com/lbryio/lbry-android-sdk.git' - } - - licenses { - license { - name 'MIT License' - url 'https://raw.githubusercontent.com/lbryio/lbry-android-sdk/master/LICENSE' - distribution 'repo' - } - } - - developers { - developer { - id 'shockr' - name 'Akinwale Ariwodola' - email 'akinwale@lbry.com' - } - } - } -} - dependencies { {%- for aar in aars %} compile(name: '{{ aar }}', ext: 'aar') diff --git a/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle.arm b/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle.arm index 28ab24f..279eb34 100644 --- a/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle.arm +++ b/p4a/pythonforandroid/bootstraps/lbry/build/templates/build.tmpl.gradle.arm @@ -31,6 +31,40 @@ archivesBaseName = 'lbrysdk' group = "io.lbry" version = "{{ args.version }}" +project(':lbrysdk') { + modifyPom { + project { + name 'LBRY SDK for Android' + description 'The LBRY SDK packaged as an Android AAR' + url 'https://github.com/lbryio/lbry-android-sdk' + groupId 'io.lbry' + artifactId 'lbrysdk32' + + scm { + url 'https://github.com/lbryio/lbry-android-sdk' + connection 'scm:https://github.com/lbryio/lbry-android-sdk.git' + developerConnection 'scm:git://github.com/lbryio/lbry-android-sdk.git' + } + + licenses { + license { + name 'MIT License' + url 'https://raw.githubusercontent.com/lbryio/lbry-android-sdk/master/LICENSE' + distribution 'repo' + } + } + + developers { + developer { + id 'shockr' + name 'Akinwale Ariwodola' + email 'akinwale@lbry.com' + } + } + } + } +} + android { compileSdkVersion {{ android_api }} buildToolsVersion '{{ build_tools_version }}' @@ -107,37 +141,6 @@ nexus { snapshotRepositoryUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } -modifyPom { - project { - name 'LBRY SDK for Android' - description 'The LBRY SDK packaged as an Android AAR' - groupId 'io.lbry' - artifactId 'lbrysdk32' - - scm { - url 'https://github.com/lbryio/lbry-android-sdk' - connection 'scm:https://github.com/lbryio/lbry-android-sdk.git' - developerConnection 'scm:git://github.com/lbryio/lbry-android-sdk.git' - } - - licenses { - license { - name 'MIT License' - url 'https://raw.githubusercontent.com/lbryio/lbry-android-sdk/master/LICENSE' - distribution 'repo' - } - } - - developers { - developer { - id 'shockr' - name 'Akinwale Ariwodola' - email 'akinwale@lbry.com' - } - } - } -} - dependencies { {%- for aar in aars %} compile(name: '{{ aar }}', ext: 'aar')