diff --git a/README.md b/README.md index fb4b22a..ac982fd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # 🔃 Invert -[![LICENSE](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/square/invert/blob/main/LICENSE) +[![Maven Central](https://img.shields.io/badge/dynamic/xml?url=https://repo1.maven.org/maven2/com/squareup/invert/invert-gradle-plugin/maven-metadata.xml&label=Latest%20Stable&color=blue&query=.//versioning/latest)](https://repo1.maven.org/maven2/com/squareup/invert/com.squareup.invert.gradle.plugin/) [![Latest Snapshot](https://img.shields.io/badge/dynamic/xml?url=https://s01.oss.sonatype.org/content/repositories/snapshots/com/squareup/invert/invert-plugin/maven-metadata.xml&label=Latest%20Snapshot&color=orange&query=.//versioning/latest)](https://s01.oss.sonatype.org/content/repositories/snapshots/com/squareup/invert/com.squareup.invert.gradle.plugin/) +[![LICENSE](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/square/invert/blob/main/LICENSE) Invert is a Gradle Plugin with a dynamic web report that lets you gain insights into your Gradle project via static analysis. diff --git a/build.gradle.kts b/build.gradle.kts index d5ac660..2aaa13b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -50,7 +50,10 @@ subprojects if (hasPublishPlugin) { it.extensions.getByType(MavenPublishBaseExtension::class.java).apply { publishToMavenCentral(SonatypeHost.S01, automaticRelease = true) - signAllPublications() + val isCI = System.getenv().containsKey("GITHUB_ACTIONS") + if (isCI) { + signAllPublications() + } pom { url.set("https://www.github.com/square/invert") name = "Invert" diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 2f4c318..31cc3be 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -8,11 +8,11 @@ buildscript { // maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") } // SNAPSHOT Versions } dependencies { - val invertVersion = "0.0.1-dev-SNAPSHOT" + val invertVersion = "0.0.2-dev00-SNAPSHOT" classpath("com.squareup.invert:invert-gradle-plugin:$invertVersion") - classpath("com.squareup.invert:collectors-anvil-dagger:$invertVersion") - classpath("com.squareup.invert:collectors-kotlin-java-loc:$invertVersion") - classpath("com.squareup.invert:owners-github-codeowners:$invertVersion") +// classpath("com.squareup.invert:collectors-anvil-dagger:$invertVersion") +// classpath("com.squareup.invert:collectors-kotlin-java-loc:$invertVersion") +// classpath("com.squareup.invert:owners-github-codeowners:$invertVersion") } } @@ -30,8 +30,8 @@ plugins { } invert { - ownershipCollector(com.squareup.invert.GitHubCodeOwnersInvertOwnershipCollector) - addStatCollector(com.squareup.invert.DiProvidesAndInjectsStatCollector()) - addStatCollector(com.squareup.invert.suppress.SuppressionsStatCollector()) - addStatCollector(com.squareup.invert.LinesOfCodeStatCollector()) +// ownershipCollector(com.squareup.invert.GitHubCodeOwnersInvertOwnershipCollector) +// addStatCollector(com.squareup.invert.DiProvidesAndInjectsStatCollector()) +// addStatCollector(com.squareup.invert.suppress.SuppressionsStatCollector()) +// addStatCollector(com.squareup.invert.LinesOfCodeStatCollector()) } diff --git a/gradle.properties b/gradle.properties index 5262e25..111d685 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,4 @@ kotlin.code.style=official android.useAndroidX=true group=com.squareup.invert -version=0.0.1-dev +version=0.0.2-dev00-SNAPSHOT diff --git a/invert.init.script.gradle.kts b/invert.init.script.gradle.kts index 197c5af..47cc8ab 100644 --- a/invert.init.script.gradle.kts +++ b/invert.init.script.gradle.kts @@ -5,7 +5,6 @@ initscript { repositories { mavenCentral() gradlePluginPortal() - mavenLocal() // SNAPSHOT Versions maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") @@ -14,9 +13,6 @@ initscript { dependencies { val invertVersion = "+" classpath("com.squareup.invert:invert-gradle-plugin:$invertVersion") - classpath("com.squareup.invert:collectors-anvil-dagger:$invertVersion") - classpath("com.squareup.invert:collectors-kotlin-java-loc:$invertVersion") - classpath("com.squareup.invert:owners-github-codeowners:$invertVersion") } } @@ -39,11 +35,8 @@ class InvertInitScriptPlugin : Plugin { } dependencies { - val invertVersion = "0.0.1-dev-SNAPSHOT" + val invertVersion = "0.0.2-dev00-SNAPSHOT" classpath("com.squareup.invert:invert-gradle-plugin:$invertVersion") - classpath("com.squareup.invert:collectors-anvil-dagger:$invertVersion") - classpath("com.squareup.invert:collectors-kotlin-java-loc:$invertVersion") - classpath("com.squareup.invert:owners-github-codeowners:$invertVersion") } } } @@ -52,10 +45,8 @@ class InvertInitScriptPlugin : Plugin { afterEvaluate { plugins.apply(com.squareup.invert.InvertGradlePlugin::class.java) this.extensions.getByType(com.squareup.invert.InvertExtension::class.java).apply { - ownershipCollector(com.squareup.invert.GitHubCodeOwnersInvertOwnershipCollector) - addStatCollector(com.squareup.invert.DiProvidesAndInjectsStatCollector()) - addStatCollector(com.squareup.invert.suppress.SuppressionsStatCollector()) - addStatCollector(com.squareup.invert.LinesOfCodeStatCollector()) +// ownershipCollector(...) +// addStatCollector(...) } } }