dependency management

v4
laoyuyu 2 years ago
parent e80f2904e1
commit 5d6c99581f
  1. 22
      AppFrame/build.gradle
  2. 22
      Aria/build.gradle
  3. 9
      AriaAnnotations/build.gradle
  4. 8
      AriaCompiler/build.gradle
  5. 29
      FtpComponent/build.gradle
  6. 29
      Http/build.gradle
  7. 29
      M3U8Component/build.gradle
  8. 30
      PublicComponent/build.gradle
  9. 30
      Queue/build.gradle
  10. 29
      SFtpComponent/build.gradle
  11. 30
      Schedulers/build.gradle
  12. 27
      androidComponent.gradle
  13. 26
      javaComponent.gradle
  14. 38
      settings.gradle

@ -1,30 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
}
}
dependencies {

@ -1,26 +1,4 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation(libs.bundles.android.test)

@ -1,12 +1,3 @@
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
// compile fileTree(dir: 'libs', include: ['*.jar'])
}

@ -1,11 +1,3 @@
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.google.auto:auto-common:1.2'

@ -1,32 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -1,32 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -1,32 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -1,33 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api project(path: ':AriaAnnotations')

@ -1,33 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
namespace 'com.arialyy.aria.queue'
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -1,32 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -1,33 +1,3 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
namespace 'com.arialyy.aria.schedulers'
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

@ -0,0 +1,27 @@
apply {
plugin "com.android.library"
plugin "org.jetbrains.kotlin.android"
plugin "kotlin-kapt"
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}

@ -0,0 +1,26 @@
apply {
plugin "com.android.library"
plugin "org.jetbrains.kotlin.android"
}
android {
compileSdkVersion libs.versions.compilesdk.get().toInteger()
buildToolsVersion libs.versions.buildToolsVersion.get()
defaultConfig {
minSdkVersion libs.versions.minSdk.get().toInteger()
targetSdkVersion libs.versions.targetsdk.get().toInteger()
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}

@ -25,17 +25,41 @@ dependencyResolutionManagement {
versionCatalogs {
libs {
// from("com.lyy.kpa.version:catalog:0.0.1")
from(files('libs.versions.toml'))
// catalog中的groovy版本
// version("groovy", "3.0.6")
}
}
}
gradle.rootProject {
it.subprojects { sub ->
beforeEvaluate {
print(sub.name)
switch (sub.name) {
case "app":
break
case "AriaAnnotations":
case "AriaCompiler":
sub.apply {
from "${project.rootDir.path}/javaComponent.gradle"
}
break
default:
sub.apply {
from "${project.rootDir.path}/androidComponent.gradle"
}
sub.android.namespace = "com.lyy.dua.${sub.name}"
break
}
}
}
}
include ':app', ':Aria', ':AriaAnnotations', ':AriaCompiler', ':AppFrame', ':Http', ':M3U8Component', ':SFtpComponent',
':FtpComponent', ':PublicComponent'
def componentList = [':app', ':Aria', ':AriaAnnotations', ':AriaCompiler',
':AppFrame', ':Http', ':M3U8Component', ':SFtpComponent', ':FtpComponent', ':PublicComponent',
':Queue', ':Schedulers'
]
componentList.forEach {
include(it)
}
rootProject.name = 'Aria'
include ':Queue'
include ':Schedulers'

Loading…
Cancel
Save