Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit e257430

Browse files
authored
refactor!: Update group ID to 'com.google.android' (#19)
1 parent dbd7781 commit e257430

File tree

10 files changed

+19
-15
lines changed

10 files changed

+19
-15
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- name: Run tests
3535
run: |
3636
echo "Running unit tests"
37-
./gradlew :plugin:build check test -x lint --stacktrace
37+
./gradlew :secrets_gradle_plugin:build check test -x lint --stacktrace

.releaserc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ plugins:
66
- - "@google/semantic-release-replace-plugin"
77
- replacements:
88
- files:
9-
- "./plugin/build.gradle.kts"
9+
- "./secrets_gradle_plugin/build.gradle.kts"
1010
from: "const val version = \".*\""
1111
to: "const val version = \"${nextRelease.version}\""
1212
- files:
1313
- "README.md"
14-
from: "version \"[0-9].[0-9]\""
14+
from: "version \".*\""
1515
to: "version \"${nextRelease.version}\""
16+
- files:
17+
- "README.md"
18+
from: "version '.*'"
19+
to: "version '${nextRelease.version}'"
1620
- - "@semantic-release/exec"
1721
- prepareCmd: "./gradlew build --warn --stacktrace"
1822
publishCmd: "./gradlew publishPlugins --warn --stacktrace"
1923
- - "@semantic-release/git"
2024
- assets:
21-
- "./plugin/build.gradle.kts"
25+
- "./secrets_gradle_plugin/build.gradle.kts"
2226
- "*.md"
2327
- "@semantic-release/github"
2428
options:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ In your app-level `build.gradle` file:
2121
Groovy:
2222
```groovy
2323
plugins {
24-
id 'com.google.secrets_gradle_plugin' version '0.6'
24+
id 'com.google.android.secrets_gradle_plugin' version '1.0'
2525
}
2626
```
2727

2828
Kotlin:
2929
```groovy
3030
plugins {
31-
id("com.google.secrets_gradle_plugin") version "0.6"
31+
id("com.google.android.secrets_gradle_plugin") version "1.0"
3232
}
3333
```
3434

File renamed without changes.

plugin/build.gradle.kts renamed to secrets_gradle_plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ publishing {
6969
}
7070

7171
object PluginInfo {
72-
const val group = "com.google"
72+
const val group = "com.google.android"
7373
const val artifactId = "secrets_gradle_plugin"
7474
const val name = "secretsGradlePlugin"
75-
const val version = "0.6"
76-
const val implementationClass = "com.google.secrets_gradle_plugin.SecretsPlugin"
75+
const val version = "1.0"
76+
const val implementationClass = "com.google.android.secrets_gradle_plugin.SecretsPlugin"
7777
}

plugin/src/main/java/com/google/secrets_gradle_plugin/Extensions.kt renamed to secrets_gradle_plugin/src/main/java/com/google/android/secrets_gradle_plugin/Extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.secrets_gradle_plugin
15+
package com.google.android.secrets_gradle_plugin
1616

1717
import com.android.build.gradle.AppExtension
1818
import com.android.build.gradle.LibraryExtension

plugin/src/main/java/com/google/secrets_gradle_plugin/SecretsPlugin.kt renamed to secrets_gradle_plugin/src/main/java/com/google/android/secrets_gradle_plugin/SecretsPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.secrets_gradle_plugin
15+
package com.google.android.secrets_gradle_plugin
1616

1717
import com.android.build.gradle.internal.core.InternalBaseVariant
1818
import org.gradle.api.Plugin

plugin/src/main/java/com/google/secrets_gradle_plugin/SecretsPluginExtension.kt renamed to secrets_gradle_plugin/src/main/java/com/google/android/secrets_gradle_plugin/SecretsPluginExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.secrets_gradle_plugin
15+
package com.google.android.secrets_gradle_plugin
1616

1717
/**
1818
* Configuration object for [SecretsPlugin].

plugin/src/test/kotlin/com/google/secrets_gradle_plugin/SecretsPluginTest.kt renamed to secrets_gradle_plugin/src/test/kotlin/com/google/android/secrets_gradle_plugin/SecretsPluginTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.secrets_gradle_plugin
15+
package com.google.android.secrets_gradle_plugin
1616

1717
import com.android.build.gradle.internal.core.InternalBaseVariant
1818
import com.nhaarman.mockitokotlin2.doReturn
@@ -57,7 +57,7 @@ class SecretsPluginTest {
5757
variant = mock() {
5858
on { mergedFlavor } doReturn flavor
5959
}
60-
project.pluginManager.apply("com.google.secrets_gradle_plugin")
60+
project.pluginManager.apply("com.google.android.secrets_gradle_plugin")
6161
}
6262

6363
@Test(expected = ProjectConfigurationException::class)

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
include(":plugin", ":sample-app")
15+
include(":secrets_gradle_plugin", ":sample-app")
1616

1717
pluginManagement {
1818
repositories {

0 commit comments

Comments
 (0)