Skip to content

Commit

Permalink
Move publishing from JCenter to Maven Central (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern authored Mar 24, 2021
1 parent 71bfba2 commit 4455f41
Show file tree
Hide file tree
Showing 29 changed files with 455 additions and 475 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/artifactory.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ You can download FirebaseUI and install it locally by cloning this
repository and running:

```sh
./gradlew :library:prepareArtifacts :library:publishAllToMavenLocal
./gradlew :library:prepareArtifacts publishToMavenLocal
```

### Contributor License Agreements
Expand Down
32 changes: 32 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
// NOTE: this project uses Gradle Kotlin DSL. More common build.gradle instructions can be found in
// the main README.
plugins {
id("com.android.application")
}

android {
compileSdkVersion(Config.SdkVersions.compile)

defaultConfig {
minSdkVersion(Config.SdkVersions.min)
targetSdkVersion(Config.SdkVersions.target)

versionName = Config.version
versionCode = 1

resourcePrefix("fui_")
vectorDrawables.useSupportLibrary = true
}

defaultConfig {
multiDexEnabled = true
}
Expand All @@ -22,7 +38,23 @@ android {
}

lintOptions {
// Common lint options across all modules
disable(
"ObsoleteLintCustomCheck", // ButterKnife will fix this in v9.0
"IconExpectedSize",
"InvalidPackage", // Firestore uses GRPC which makes lint mad
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
"SelectableText", "SyntheticAccessor" // We almost never care about this
)

// Module-specific
disable("ResourceName", "MissingTranslation", "DuplicateStrings")

isCheckAllWarnings = true
isWarningsAsErrors = true
isAbortOnError = true

baselineFile = file("$rootDir/library/quality/lint-baseline.xml")
}

compileOptions {
Expand Down
50 changes: 43 additions & 7 deletions auth/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
import com.android.build.gradle.internal.dsl.TestOptions

plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}

android {
compileSdkVersion(Config.SdkVersions.compile)

defaultConfig {
minSdkVersion(Config.SdkVersions.min)
targetSdkVersion(Config.SdkVersions.target)

versionName = Config.version
versionCode = 1

resourcePrefix("fui_")
vectorDrawables.useSupportLibrary = true
}

buildTypes {
named("release").configure {
isMinifyEnabled = false
Expand All @@ -9,13 +27,31 @@ android {
}

lintOptions {
disable("UnusedQuantity")
disable("UnknownNullness") // TODO fix in future PR
disable("TypographyQuotes") // Straight versus directional quotes
disable("DuplicateStrings")
disable("LocaleFolder")
disable("IconLocation")
disable("VectorPath")
// Common lint options across all modules
disable(
"ObsoleteLintCustomCheck", // ButterKnife will fix this in v9.0
"IconExpectedSize",
"InvalidPackage", // Firestore uses GRPC which makes lint mad
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
"SelectableText", "SyntheticAccessor" // We almost never care about this
)

// Module specific
disable(
"UnusedQuantity",
"UnknownNullness", // TODO fix in future PR
"TypographyQuotes", // Straight versus directional quotes
"DuplicateStrings",
"LocaleFolder",
"IconLocation",
"VectorPath"
)

isCheckAllWarnings = true
isWarningsAsErrors = true
isAbortOnError = true

baselineFile = file("$rootDir/library/quality/lint-baseline.xml")
}

testOptions {
Expand Down
2 changes: 2 additions & 0 deletions auth/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
POM_ARTIFACT_ID=firebase-ui-auth
POM_NAME=FirebaseUI Auth
Loading

0 comments on commit 4455f41

Please sign in to comment.