Skip to content

Commit

Permalink
[release] 1.0.9
Browse files Browse the repository at this point in the history
- detekt fix,
- enabling type resolution for detekt
- enabling parallel in gradle. It won't be needed, but why not, lets test,
- removing dependencies and google repo from build.gradle.kts in buildSrc,
- changing suppress in Libs.kt.
  • Loading branch information
GrzegorzBobryk committed Feb 8, 2024
1 parent cf4f79a commit 8e2ea5f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Ktlint
run: ./gradlew ktlintCheck
- name: Detekt
run: ./gradlew detekt
run: ./gradlew detektMain
- name: Build with Gradle
run: ./gradlew buildDebug
instrumentation-tests:
Expand Down
6 changes: 0 additions & 6 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ plugins {
}

repositories {
google()
mavenCentral()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
implementation("com.android.tools.build:gradle:8.2.0")
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@file:Suppress("unused")
@file:Suppress("PackageDirectoryMismatch") // this way it will work in project build.gradle.kts

import org.gradle.api.JavaVersion
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.kotlin.dsl.project
import pl.beavercoding.viewbindingdelegate.buildsrc.implementation

object Libs {
private const val androidGradlePluginVersion = "8.2.0"
private const val androidGradlePluginVersion = "8.2.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:$androidGradlePluginVersion"
const val junit = "junit:junit:4.13.2"
val java = JavaVersion.VERSION_1_8
Expand Down
7 changes: 7 additions & 0 deletions config/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ formatting:
MaximumLineLength:
active: true
maxLineLength: 130
ArgumentListWrapping:
active: true
maxLineLength: 130
style:
MaxLineLength:
active: true
maxLineLength: 130
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# https://docs.gradle.org/current/userguide/performance.html#parallel_execution
org.gradle.parallel=true
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
2 changes: 1 addition & 1 deletion view-binder/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ afterEvaluate {

groupId = "com.github.grzegorzbobryk"
artifactId = "view-binder"
version = "1.0.9-alpha1"
version = "1.0.9-alpha2"
}
}
}
Expand Down

0 comments on commit 8e2ea5f

Please sign in to comment.