TP-37525 | BuildScript Migration (#7459)
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'maven-publish'
|
||||
id 'com.google.firebase.crashlytics'
|
||||
id 'com.google.gms.google-services'
|
||||
id 'com.google.firebase.firebase-perf'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
id 'hypersdk-asset-plugin'
|
||||
}
|
||||
|
||||
@@ -207,11 +204,6 @@ static def formatString(String value) {
|
||||
return '"' + value + '"'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
if (project.hasProperty('NEXUS_URL')
|
||||
@@ -368,41 +360,3 @@ dependencies {
|
||||
debugImplementation hyperion.menu
|
||||
releaseImplementation hyperion.release_core
|
||||
}
|
||||
|
||||
tasks.withType(Compiler) {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
tasks.withType(Test) {
|
||||
testLogging {
|
||||
// set options for log level LIFECYCLE
|
||||
events TestLogEvent.FAILED,
|
||||
TestLogEvent.PASSED,
|
||||
TestLogEvent.SKIPPED,
|
||||
TestLogEvent.STANDARD_OUT
|
||||
exceptionFormat TestExceptionFormat.FULL
|
||||
showExceptions true
|
||||
showCauses true
|
||||
showStackTraces true
|
||||
// set options for log level DEBUG and INFO
|
||||
debug {
|
||||
events TestLogEvent.STARTED,
|
||||
TestLogEvent.FAILED,
|
||||
TestLogEvent.PASSED,
|
||||
TestLogEvent.SKIPPED,
|
||||
TestLogEvent.STANDARD_ERROR,
|
||||
TestLogEvent.STANDARD_OUT
|
||||
exceptionFormat TestExceptionFormat.FULL
|
||||
}
|
||||
info.events = debug.events
|
||||
info.exceptionFormat = debug.exceptionFormat
|
||||
afterSuite { desc, result ->
|
||||
if (!desc.parent) { // will match the outermost suite
|
||||
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} passed, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped)"
|
||||
def startItem = '| ', endItem = ' |'
|
||||
def repeatLength = startItem.length() + output.length() + endItem.length()
|
||||
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
75
build.gradle
75
build.gradle
@@ -1,90 +1,53 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url 'https://maven.fabric.io/public' }
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
maven {
|
||||
url "https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/"
|
||||
}
|
||||
maven { url "https://finarkein.jfrog.io/artifactory/anubhav-maven" }
|
||||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
|
||||
classpath 'com.google.gms:google-services:4.3.15'
|
||||
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.4.2'
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module adle files
|
||||
|
||||
// Add the Crashlytics Gradle plugin.
|
||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
||||
classpath 'com.google.firebase:perf-plugin:1.4.1'
|
||||
|
||||
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.44'
|
||||
classpath 'in.juspay:hypersdk-asset-plugin:1.0.3'
|
||||
classpath 'org.codehaus.groovy:groovy-json:3.0.7'
|
||||
}
|
||||
apply from: 'dependencies.gradle'
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.diffplug.spotless' version '6.20.0'
|
||||
id 'com.android.application' version '7.3.1' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
|
||||
id 'com.google.gms.google-services' version '4.3.15' apply false
|
||||
id 'com.google.firebase.crashlytics' version '2.8.1' apply false
|
||||
id 'com.google.firebase.firebase-perf' version '1.4.1' apply false
|
||||
id 'com.google.dagger.hilt.android' version '2.44' apply false
|
||||
id 'androidx.navigation.safeargs.kotlin' version '2.4.2' apply false
|
||||
id 'com.diffplug.spotless' version '6.20.0'
|
||||
}
|
||||
|
||||
apply from: "$project.rootDir/spotless.gradle"
|
||||
apply from: 'spotless.gradle'
|
||||
apply from: 'dependencies.gradle'
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://nexus.cmd.navi-tech.in/repository/maven-snapshots'
|
||||
credentials {
|
||||
username 'nexus-user'
|
||||
password 'nexus-user'
|
||||
}
|
||||
url "https://nexus.cmd.navi-tech.in/repository/maven-snapshots"
|
||||
}
|
||||
maven {
|
||||
url 'https://nexus.cmd.navi-tech.in/repository/maven-releases'
|
||||
credentials {
|
||||
username 'nexus-user'
|
||||
password 'nexus-user'
|
||||
}
|
||||
url "https://nexus.cmd.navi-tech.in/repository/maven-releases"
|
||||
}
|
||||
maven { url 'https://s3.ap-south-1.amazonaws.com/hvsdk/android/releases' }
|
||||
maven {
|
||||
url "https://s3.ap-south-1.amazonaws.com/hvsdk/android/releases"
|
||||
}
|
||||
maven {
|
||||
url "s3://okyc-navi-sdk.s3.amazonaws.com"
|
||||
url 's3://okyc-navi-sdk.s3.amazonaws.com'
|
||||
credentials(AwsCredentials) {
|
||||
accessKey "AKIA325LPZPYF2PRBOVE"
|
||||
secretKey "U39PUBib1LoKtyamr58pTvUn2suRb6/if3yp0BLo"
|
||||
accessKey 'AKIA325LPZPYF2PRBOVE'
|
||||
secretKey 'U39PUBib1LoKtyamr58pTvUn2suRb6/if3yp0BLo'
|
||||
}
|
||||
}
|
||||
maven {
|
||||
url "https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android"
|
||||
}
|
||||
maven {
|
||||
url "https://maven.juspay.in/jp-build-packages/hyper-sdk/"
|
||||
}
|
||||
maven { url "https://finarkein.jfrog.io/artifactory/anubhav-maven" }
|
||||
maven {
|
||||
url "https://cashshield-sdk.s3.amazonaws.com/release/"
|
||||
}
|
||||
maven { url 'https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android' }
|
||||
maven { url 'https://maven.juspay.in/jp-build-packages/hyper-sdk/' }
|
||||
maven { url 'https://finarkein.jfrog.io/artifactory/anubhav-maven' }
|
||||
// jitpack should be last repository
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
// required by room and we cannot update room version as
|
||||
// it may want us to change minSdkVersion
|
||||
// https://issuetracker.google.com/issues/174695268?pli=1#comment10
|
||||
force 'org.xerial:sqlite-jdbc:3.34.0'
|
||||
}
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
id 'androidx.navigation.safeargs.kotlin'
|
||||
}
|
||||
|
||||
@@ -49,10 +49,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":navi-common")
|
||||
implementation "androidx.core:core-ktx:$core_version"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -2,9 +2,9 @@ plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'com.google.devtools.ksp' version '1.8.10-1.0.9'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-parcelize'
|
||||
id 'kotlin-kapt'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'androidx.navigation.safeargs.kotlin'
|
||||
}
|
||||
|
||||
@@ -47,10 +47,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":navi-common")
|
||||
implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'kotlin-parcelize'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -41,10 +41,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation "androidx.core:core-ktx:$core_version"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id 'com.android.dynamic-feature'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
id 'androidx.navigation.safeargs.kotlin'
|
||||
}
|
||||
|
||||
@@ -61,10 +61,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':app')
|
||||
implementation project(":navi-hl")
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id 'com.android.dynamic-feature'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
id 'org.jetbrains.kotlin.plugin.parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.kapt'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url 'https://maven.fabric.io/public' }
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
maven { url 'https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/' }
|
||||
maven { url 'https://finarkein.jfrog.io/artifactory/anubhav-maven' }
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = 'super-app'
|
||||
|
||||
include ':app'
|
||||
|
||||
Reference in New Issue
Block a user