Skip to content

Commit 4455f41

Browse files
authored
Move publishing from JCenter to Maven Central (#1927)
1 parent 71bfba2 commit 4455f41

29 files changed

+455
-475
lines changed

.github/workflows/artifactory.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ You can download FirebaseUI and install it locally by cloning this
209209
repository and running:
210210

211211
```sh
212-
./gradlew :library:prepareArtifacts :library:publishAllToMavenLocal
212+
./gradlew :library:prepareArtifacts publishToMavenLocal
213213
```
214214

215215
### Contributor License Agreements

app/build.gradle.kts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
// NOTE: this project uses Gradle Kotlin DSL. More common build.gradle instructions can be found in
22
// the main README.
3+
plugins {
4+
id("com.android.application")
5+
}
36

47
android {
8+
compileSdkVersion(Config.SdkVersions.compile)
9+
10+
defaultConfig {
11+
minSdkVersion(Config.SdkVersions.min)
12+
targetSdkVersion(Config.SdkVersions.target)
13+
14+
versionName = Config.version
15+
versionCode = 1
16+
17+
resourcePrefix("fui_")
18+
vectorDrawables.useSupportLibrary = true
19+
}
20+
521
defaultConfig {
622
multiDexEnabled = true
723
}
@@ -22,7 +38,23 @@ android {
2238
}
2339

2440
lintOptions {
41+
// Common lint options across all modules
42+
disable(
43+
"ObsoleteLintCustomCheck", // ButterKnife will fix this in v9.0
44+
"IconExpectedSize",
45+
"InvalidPackage", // Firestore uses GRPC which makes lint mad
46+
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
47+
"SelectableText", "SyntheticAccessor" // We almost never care about this
48+
)
49+
50+
// Module-specific
2551
disable("ResourceName", "MissingTranslation", "DuplicateStrings")
52+
53+
isCheckAllWarnings = true
54+
isWarningsAsErrors = true
55+
isAbortOnError = true
56+
57+
baselineFile = file("$rootDir/library/quality/lint-baseline.xml")
2658
}
2759

2860
compileOptions {

auth/build.gradle.kts

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
import com.android.build.gradle.internal.dsl.TestOptions
22

3+
plugins {
4+
id("com.android.library")
5+
id("com.vanniktech.maven.publish")
6+
}
7+
38
android {
9+
compileSdkVersion(Config.SdkVersions.compile)
10+
11+
defaultConfig {
12+
minSdkVersion(Config.SdkVersions.min)
13+
targetSdkVersion(Config.SdkVersions.target)
14+
15+
versionName = Config.version
16+
versionCode = 1
17+
18+
resourcePrefix("fui_")
19+
vectorDrawables.useSupportLibrary = true
20+
}
21+
422
buildTypes {
523
named("release").configure {
624
isMinifyEnabled = false
@@ -9,13 +27,31 @@ android {
927
}
1028

1129
lintOptions {
12-
disable("UnusedQuantity")
13-
disable("UnknownNullness") // TODO fix in future PR
14-
disable("TypographyQuotes") // Straight versus directional quotes
15-
disable("DuplicateStrings")
16-
disable("LocaleFolder")
17-
disable("IconLocation")
18-
disable("VectorPath")
30+
// Common lint options across all modules
31+
disable(
32+
"ObsoleteLintCustomCheck", // ButterKnife will fix this in v9.0
33+
"IconExpectedSize",
34+
"InvalidPackage", // Firestore uses GRPC which makes lint mad
35+
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
36+
"SelectableText", "SyntheticAccessor" // We almost never care about this
37+
)
38+
39+
// Module specific
40+
disable(
41+
"UnusedQuantity",
42+
"UnknownNullness", // TODO fix in future PR
43+
"TypographyQuotes", // Straight versus directional quotes
44+
"DuplicateStrings",
45+
"LocaleFolder",
46+
"IconLocation",
47+
"VectorPath"
48+
)
49+
50+
isCheckAllWarnings = true
51+
isWarningsAsErrors = true
52+
isAbortOnError = true
53+
54+
baselineFile = file("$rootDir/library/quality/lint-baseline.xml")
1955
}
2056

2157
testOptions {

auth/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POM_ARTIFACT_ID=firebase-ui-auth
2+
POM_NAME=FirebaseUI Auth

0 commit comments

Comments
 (0)