Skip to content

Commit

Permalink
使用新方式依赖官方插件
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Jul 12, 2022
1 parent 03c1e2f commit 88d8e31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
18 changes: 6 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
if ("true" == useMavenLocal) {
mavenLocal()
} else {
maven { url 'https://jitpack.io' }
}
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "com.bytedance.android:aabresguard-plugin:0.1.10"
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0'
classpath "com.github.liujingxing:XmlClassGuard:$plugin_version"
}
}

plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
7 changes: 6 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ pluginManagement {
gradlePluginPortal()
google()
mavenCentral()
if ("true" == useMavenLocal) {
mavenLocal()
}
maven { url 'https://jitpack.io' }
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
}
}
dependencyResolutionManagement {
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
repositories {
google()
mavenCentral()
Expand Down

0 comments on commit 88d8e31

Please sign in to comment.