Skip to content

Commit

Permalink
更新gradle信息
Browse files Browse the repository at this point in the history
  • Loading branch information
ifan committed Aug 13, 2021
1 parent 3bb6644 commit 9ad8a5a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ fabric.properties

# End of https://www.gitignore.io/api/androidstudio
.idea/copyright/
maven-publish.gradle
maven-publish.properties
23 changes: 22 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.util.function.Consumer

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
Expand All @@ -6,6 +8,7 @@ buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {

Expand All @@ -20,6 +23,7 @@ allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
tasks.withType(Javadoc) {
Expand All @@ -37,4 +41,21 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

//tasks.getByPath(":immersionbar-ktx:releaseAndroidJavadocs").enabled = false
subprojects.forEach(new Consumer<Project>() {
@Override
void accept(Project project) {
["com.android.library"].forEach(new Consumer<String>() {
@Override
void accept(String s) {
project.getPlugins().withId(s) {
project.afterEvaluate {
def file = new File(project.getProjectDir().parent, "maven-publish.gradle")
if(file.exists()){
project.apply from: file
}
}
}
}
})
}
})

0 comments on commit 9ad8a5a

Please sign in to comment.