File tree Expand file tree Collapse file tree 6 files changed +14
-15
lines changed Expand file tree Collapse file tree 6 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ android {
21
21
}
22
22
}
23
23
24
- lintOptions {
24
+ lint {
25
25
disable(" ResourceName" , " MissingTranslation" , " DuplicateStrings" )
26
26
}
27
27
28
28
compileOptions {
29
- setSourceCompatibility( JavaVersion .VERSION_1_8 )
30
- setTargetCompatibility( JavaVersion .VERSION_1_8 )
29
+ sourceCompatibility = JavaVersion .VERSION_1_8
30
+ targetCompatibility = JavaVersion .VERSION_1_8
31
31
}
32
32
}
33
33
Original file line number Diff line number Diff line change 1
- import com.android.build.gradle.internal.dsl.TestOptions
2
-
3
1
android {
4
2
buildTypes {
5
3
named(" release" ).configure {
@@ -8,7 +6,7 @@ android {
8
6
}
9
7
}
10
8
11
- lintOptions {
9
+ lint {
12
10
disable(" UnusedQuantity" )
13
11
disable(" UnknownNullness" ) // TODO fix in future PR
14
12
disable(" TypographyQuotes" ) // Straight versus directional quotes
@@ -19,9 +17,9 @@ android {
19
17
}
20
18
21
19
testOptions {
22
- unitTests(closureOf< TestOptions . UnitTestOptions > {
20
+ unitTests {
23
21
isIncludeAndroidResources = true
24
- })
22
+ }
25
23
}
26
24
}
27
25
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ fun Project.configureAndroid() {
88
88
minSdkVersion(Config .SdkVersions .min)
89
89
targetSdkVersion(Config .SdkVersions .target)
90
90
91
- versionName = Config .version
91
+ buildConfigField( " String " , " VERSION_NAME " , " \" ${ Config .version} \" " )
92
92
versionCode = 1
93
93
94
94
resourcePrefix(" fui_" )
@@ -132,7 +132,7 @@ fun Project.configureQuality() {
132
132
133
133
fun Project.setupPublishing () {
134
134
val sourcesJar = tasks.register<Jar >(" sourcesJar" ) {
135
- classifier = " sources"
135
+ archiveClassifier.set( " sources" )
136
136
from(project.the<BaseExtension >().sourceSets[" main" ].java.srcDirs)
137
137
}
138
138
@@ -141,7 +141,8 @@ fun Project.setupPublishing() {
141
141
classpath + = files(project.the<BaseExtension >().bootClasspath)
142
142
143
143
project.the<LibraryExtension >().libraryVariants.configureEach {
144
- dependsOn(assemble)
144
+ dependsOn(assembleProvider)
145
+ // TODO 07.03.2021: Migrate to lazy task API
145
146
classpath + = files((javaCompiler as AbstractCompile ).classpath)
146
147
}
147
148
@@ -151,7 +152,7 @@ fun Project.setupPublishing() {
151
152
152
153
val javadocJar = tasks.register<Jar >(" javadocJar" ) {
153
154
dependsOn(javadoc)
154
- classifier = " javadoc"
155
+ archiveClassifier.set( " javadoc" )
155
156
from(javadoc.get().destinationDir)
156
157
}
157
158
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ object Config {
11
11
}
12
12
13
13
object Plugins {
14
- const val android = " com.android.tools.build:gradle:4 .0.0"
14
+ const val android = " com.android.tools.build:gradle:7 .0.0-alpha08 "
15
15
const val kotlin = " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
16
16
const val google = " com.google.gms:google-services:4.3.3"
17
17
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-6.4.1 -all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.8.2 -all.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
tasks.named(" check" ).configure { dependsOn(" testAll" , " prepareArtifacts" ) }
2
2
3
3
android {
4
- lintOptions {
4
+ lint {
5
5
isAbortOnError = false
6
6
}
7
7
}
You can’t perform that action at this time.
0 commit comments