Skip to content

Commit

Permalink
Specifying classpath.
Browse files Browse the repository at this point in the history
  • Loading branch information
arriolac committed Jun 18, 2021
1 parent 67834d0 commit 41eced8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,39 @@ class and in the Android manifest file.

**NOTE**: Starting from v1.1.0, the plugin ID was changed to "com.google.android.libraries.mapsplatform.secrets-gradle-plugin" and the plugin is now being distributed via Google Maven (gMaven). You can still download previous versions of the plugin from Gradle's plugin portal, but new versions will now only be distributed through gMaven.

In your app-level `build.gradle` file:
1. In your project's root `build.gradle` file:

Groovy:
```groovy
buildscript {
dependencies {
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.2.0"
}
}
```

Kotlin:
```kotlin
buildscript {
dependencies {
classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.2.0")
}
}
```

2. In your app-level `build.gradle` file:

Groovy:
```groovy
plugins {
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '1.2.0'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}
```

Kotlin:
```groovy
plugins {
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") version "1.2.0"
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
}
```

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:1.2.0"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion sample-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
id("kotlin-android")

// 1. Include the plugin
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") version "1.2.0"
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
}

android {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ pluginManagement {
repositories {
mavenLocal()
maven(url = "./plugin/build/repository")
google()
gradlePluginPortal()
}
}

0 comments on commit 41eced8

Please sign in to comment.