Skip to content

Commit 0fa4ae4

Browse files
fix deploy to maven for dev deployment github action for dev branch by disabling android annotation linting
1 parent 484770a commit 0fa4ae4

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ kotlin.mpp.enableCInteropCommonization=true
1111
android.useAndroidX=true
1212
android.nonTransitiveRClass=true
1313
#Library
14-
library.version=0.0.1
14+
library.version=0.0.0

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ vanniktechMavenPublish = "0.35.0"
1111
sonarqube = "7.2.2.6593"
1212
kover = "0.9.4"
1313
detekt = "2.0.0-alpha.1"
14-
androidToolsLint = "32.0.0-beta05"
1514

1615
[libraries]
1716
espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
1817
junit = { module = "junit:junit", version.ref = "junit" }
1918
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotestAssertionsCore" }
2019
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
2120
runner = { module = "androidx.test:runner", version.ref = "runner" }
22-
android-tools-lint = { module = "com.android.tools.lint:lint-gradle", version.ref = "androidToolsLint" }
2321

2422
[plugins]
2523
android-kotlin-multiplatform-library = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" }

library/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.android.build.gradle.internal.lint.AndroidLintTask
12
import dev.detekt.gradle.Detekt
23
import dev.detekt.gradle.DetektCreateBaselineTask
34
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -45,6 +46,9 @@ kotlin {
4546
}
4647
}
4748
}
49+
lint {
50+
checkReleaseBuilds = false
51+
}
4852
}
4953

5054
linuxX64()
@@ -60,13 +64,13 @@ kotlin {
6064
}
6165

6266
androidMain.dependencies {
63-
implementation(libs.android.tools.lint)
6467
}
6568

6669
commonTest.dependencies {
6770
implementation(libs.kotlin.test)
6871
implementation(libs.kotest.assertions.core)
6972
}
73+
7074
val androidDeviceTest by getting {
7175
dependencies {
7276
implementation(libs.runner)
@@ -75,6 +79,11 @@ kotlin {
7579
}
7680
}
7781

82+
val androidHostTest by getting {
83+
dependencies {
84+
}
85+
}
86+
7887
val wasmJsMain by getting {
7988
dependencies {
8089

@@ -128,6 +137,8 @@ kotlin {
128137
tasks.named("sonar") {
129138
dependsOn(subprojects.map { it.tasks.named("koverXmlReport") })
130139
}
140+
tasks.withType<AndroidLintTask>().all { enabled = false }
141+
tasks.withType<Javadoc>().all { enabled = false }
131142
}
132143

133144
publishing {

0 commit comments

Comments
 (0)