File tree 8 files changed +13
-16
lines changed
8 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ android {
7
7
}
8
8
9
9
buildTypes {
10
- getByName (" release" ) {
10
+ named (" release" ).configure {
11
11
// For the purposes of the sample, allow testing of a proguarded release build
12
12
// using the debug key
13
13
signingConfig = signingConfigs[" debug" ]
Original file line number Diff line number Diff line change 1
-
2
1
import com.android.build.gradle.internal.dsl.TestOptions
3
2
4
3
android {
5
4
buildTypes {
6
- getByName (" release" ) {
5
+ named (" release" ).configure {
7
6
postprocessing {
8
7
consumerProguardFiles(" auth-proguard.pro" )
9
8
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ allprojects {
53
53
}
54
54
}
55
55
56
- tasks.withType<Wrapper > {
56
+ tasks.withType<Wrapper >().configureEach {
57
57
distributionType = Wrapper .DistributionType .ALL
58
58
}
59
59
@@ -139,14 +139,12 @@ fun Project.setupPublishing() {
139
139
}
140
140
141
141
val javadoc = tasks.register<Javadoc >(" javadoc" ) {
142
- afterEvaluate {
143
- dependsOn (project.the<LibraryExtension >().libraryVariants.map { it.assemble } )
142
+ setSource(project.the< BaseExtension >().sourceSets[ " main " ].java.srcDirs)
143
+ classpath + = files (project.the<BaseExtension >().bootClasspath )
144
144
145
- setSource(project.the<BaseExtension >().sourceSets[" main" ].java.srcDirs)
146
- classpath + = files(project.the<BaseExtension >().bootClasspath)
147
- classpath + = files(project.the<LibraryExtension >().libraryVariants.map {
148
- (it.javaCompiler as AbstractCompile ).classpath
149
- })
145
+ project.the<LibraryExtension >().libraryVariants.configureEach {
146
+ dependsOn(assemble)
147
+ classpath + = files((javaCompiler as AbstractCompile ).classpath)
150
148
}
151
149
152
150
// Ignore warnings about incomplete documentation
@@ -347,7 +345,7 @@ fun Project.setupPublishing() {
347
345
})
348
346
}
349
347
350
- tasks.withType<ArtifactoryTask > { publications(publicationName) }
348
+ tasks.withType<ArtifactoryTask >().configureEach { publications(publicationName) }
351
349
352
350
configure<BintrayExtension > {
353
351
user = bintrayUsername
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ android {
6
6
}
7
7
8
8
buildTypes {
9
- getByName (" release" ) {
9
+ named (" release" ).configure {
10
10
postprocessing {
11
11
consumerProguardFiles(" proguard-rules.pro" )
12
12
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.10-rc-3- all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.10-all.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ dependencies {
10
10
testImplementation(Config .Libs .Lint .tests)
11
11
}
12
12
13
- tasks.withType<Jar > {
13
+ tasks.withType<Jar >().configureEach {
14
14
manifest {
15
15
attributes(mapOf (" Lint-Registry-v2" to " com.firebaseui.lint.LintIssueRegistry" ))
16
16
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ android {
4
4
}
5
5
6
6
buildTypes {
7
- getByName (" release" ) {
7
+ named (" release" ).configure {
8
8
// For the purposes of the sample, allow testing of a proguarded release build
9
9
// using the debug key
10
10
signingConfig = signingConfigs[" debug" ]
You can’t perform that action at this time.
0 commit comments