Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle cleanup #142

Merged
merged 19 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
projectFilesBackup

# Gradle
build/
# rootProject
/build/
# App and module collections
/*/build/
# Features, Components and Gradle Plugins
/*/*/build/
# Contracts
/*/*/*/build/

# Android
local.properties
Expand Down
8 changes: 1 addition & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id("net.twisterrob.android-app")
id("build.android-base.conventions")
id("net.twisterrob.colorfilters.app")
}

dependencies {
Expand All @@ -16,7 +15,6 @@ dependencies {
}

dependencies {
androidTestImplementation(projects.component.testBaseUi)
androidTestImplementation(projects.feature.lighting.testFixtures)
androidTestImplementation(projects.feature.porterduff.testFixtures)
androidTestImplementation(projects.feature.matrix.testFixtures)
Expand All @@ -38,8 +36,4 @@ android {
}
}
*/

lint {
checkDependencies = true
}
}
4 changes: 2 additions & 2 deletions component/test-base-ui/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import static VersionCatalogExt.exclude
import static net.twisterrob.colorfilters.build.dsl.VersionCatalogExt.exclude

plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}

android {
Expand Down
2 changes: 1 addition & 1 deletion component/test-base-unit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}

android {
Expand Down
2 changes: 1 addition & 1 deletion feature/about/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

android {
Expand Down
2 changes: 1 addition & 1 deletion feature/about/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
2 changes: 1 addition & 1 deletion feature/base/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions feature/image/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import static VersionCatalogExt.exclude
import static net.twisterrob.colorfilters.build.dsl.VersionCatalogExt.exclude

plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/keyboard/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/keyboard/contract/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.component.conventions")
id("net.twisterrob.colorfilters.component")
}
2 changes: 1 addition & 1 deletion feature/lighting/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/lighting/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
2 changes: 1 addition & 1 deletion feature/matrix/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/matrix/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
2 changes: 1 addition & 1 deletion feature/palette/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/palette/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
2 changes: 1 addition & 1 deletion feature/porterduff/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/porterduff/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
2 changes: 1 addition & 1 deletion feature/resfont/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("net.twisterrob.colorfilters.feature.conventions")
id("net.twisterrob.colorfilters.feature")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion feature/resfont/test-fixtures/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id("net.twisterrob.colorfilters.test-fixtures.conventions")
id("net.twisterrob.colorfilters.test-fixtures")
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ agp = "7.4.1"
# https://github.com/TWiStErRob/net.twisterrob.gradle/releases
twisterrob = "0.15"

java = "1.8"
# https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md
kotlin = "1.8.10"
# https://github.com/detekt/detekt/releases
Expand Down
4 changes: 2 additions & 2 deletions gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ gradlePlugin {
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
allWarningsAsErrors = true
compilerOptions {
allWarningsAsErrors.set(true)
}
}

Expand Down
1 change: 1 addition & 0 deletions gradle/plugins/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.warning.mode=all
Binary file added gradle/plugins/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/plugins/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists