Skip to content

Commit

Permalink
Prepare for 0.2.0-dev00 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
handstandsam authored Jul 1, 2024
1 parent 65b8141 commit 9660851
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 23 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand All @@ -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())
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 3 additions & 12 deletions invert.init.script.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ initscript {
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
// SNAPSHOT Versions
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
Expand All @@ -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")
}
}

Expand All @@ -39,11 +35,8 @@ class InvertInitScriptPlugin : Plugin<Gradle> {
}

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")
}
}
}
Expand All @@ -52,10 +45,8 @@ class InvertInitScriptPlugin : Plugin<Gradle> {
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(...)
}
}
}
Expand Down

0 comments on commit 9660851

Please sign in to comment.