Skip to content

Commit

Permalink
refactor!: Update group ID to 'com.google.android' (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
arriolac authored Jun 9, 2021
1 parent dbd7781 commit e257430
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Run tests
run: |
echo "Running unit tests"
./gradlew :plugin:build check test -x lint --stacktrace
./gradlew :secrets_gradle_plugin:build check test -x lint --stacktrace
10 changes: 7 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ plugins:
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
- "./plugin/build.gradle.kts"
- "./secrets_gradle_plugin/build.gradle.kts"
from: "const val version = \".*\""
to: "const val version = \"${nextRelease.version}\""
- files:
- "README.md"
from: "version \"[0-9].[0-9]\""
from: "version \".*\""
to: "version \"${nextRelease.version}\""
- files:
- "README.md"
from: "version '.*'"
to: "version '${nextRelease.version}'"
- - "@semantic-release/exec"
- prepareCmd: "./gradlew build --warn --stacktrace"
publishCmd: "./gradlew publishPlugins --warn --stacktrace"
- - "@semantic-release/git"
- assets:
- "./plugin/build.gradle.kts"
- "./secrets_gradle_plugin/build.gradle.kts"
- "*.md"
- "@semantic-release/github"
options:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ In your app-level `build.gradle` file:
Groovy:
```groovy
plugins {
id 'com.google.secrets_gradle_plugin' version '0.6'
id 'com.google.android.secrets_gradle_plugin' version '1.0'
}
```

Kotlin:
```groovy
plugins {
id("com.google.secrets_gradle_plugin") version "0.6"
id("com.google.android.secrets_gradle_plugin") version "1.0"
}
```

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ publishing {
}

object PluginInfo {
const val group = "com.google"
const val group = "com.google.android"
const val artifactId = "secrets_gradle_plugin"
const val name = "secretsGradlePlugin"
const val version = "0.6"
const val implementationClass = "com.google.secrets_gradle_plugin.SecretsPlugin"
const val version = "1.0"
const val implementationClass = "com.google.android.secrets_gradle_plugin.SecretsPlugin"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.secrets_gradle_plugin
package com.google.android.secrets_gradle_plugin

import com.android.build.gradle.AppExtension
import com.android.build.gradle.LibraryExtension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.secrets_gradle_plugin
package com.google.android.secrets_gradle_plugin

import com.android.build.gradle.internal.core.InternalBaseVariant
import org.gradle.api.Plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.secrets_gradle_plugin
package com.google.android.secrets_gradle_plugin

/**
* Configuration object for [SecretsPlugin].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.secrets_gradle_plugin
package com.google.android.secrets_gradle_plugin

import com.android.build.gradle.internal.core.InternalBaseVariant
import com.nhaarman.mockitokotlin2.doReturn
Expand Down Expand Up @@ -57,7 +57,7 @@ class SecretsPluginTest {
variant = mock() {
on { mergedFlavor } doReturn flavor
}
project.pluginManager.apply("com.google.secrets_gradle_plugin")
project.pluginManager.apply("com.google.android.secrets_gradle_plugin")
}

@Test(expected = ProjectConfigurationException::class)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

include(":plugin", ":sample-app")
include(":secrets_gradle_plugin", ":sample-app")

pluginManagement {
repositories {
Expand Down

0 comments on commit e257430

Please sign in to comment.