Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Jan 20, 2023
1 parent 964bb39 commit a80ae46
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
14 changes: 13 additions & 1 deletion docs/examples/local/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id("com.android.application") version "7.3.1"
id("net.twisterrob.gradle.plugin.quality") version "0.15-SNAPSHOT"
id("example")
}

android {
Expand All @@ -21,3 +20,16 @@ repositories {
google()
mavenCentral()
}

// TODEL https://issuetracker.google.com/issues/264177800
if (com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION < "7.4.1") {
val gradleVersion: String = GradleVersion.current().version
net.twisterrob.gradle.doNotNagAbout(
"The Report.destination property has been deprecated. " +
"This is scheduled to be removed in Gradle 9.0. " +
"Please use the outputLocation property instead. " +
"See https://docs.gradle.org/${gradleVersion}/dsl/org.gradle.api.reporting.Report.html#org.gradle.api.reporting.Report:destination for more details."
)
} else {
error("AGP major version changed, review hack.")
}
5 changes: 4 additions & 1 deletion docs/examples/local/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pluginManagement {
includeBuild("../shared")
repositories {
mavenCentral()
//gradlePluginPortal() // not used
Expand All @@ -25,3 +24,7 @@ pluginManagement {
}
}
}

plugins {
id("net.twisterrob.settings") version "0.15-SNAPSHOT" // cretae gradle marker
}
1 change: 0 additions & 1 deletion docs/examples/snapshot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id("com.android.application") version "7.3.1"
id("net.twisterrob.gradle.plugin.quality") version "0.15-SNAPSHOT"
id("example")
}

android {
Expand Down
8 changes: 1 addition & 7 deletions docs/examples/snapshot/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
pluginManagement {
includeBuild("../shared")
repositories {
mavenCentral()
//gradlePluginPortal() // not used
exclusiveContent {
forRepository {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "Sonatype 01"
mavenContent {
snapshotsOnly()
}
}
mavenLocal()// STOPSHIP
}
filter {
includeGroupByRegex("""^net\.twisterrob\.gradle\.plugin\..*$""")
Expand Down

0 comments on commit a80ae46

Please sign in to comment.