Skip to content

Commit

Permalink
Merge pull request #109 from KakaoCup/gradle-cleanup
Browse files Browse the repository at this point in the history
Some gradle-related cleanup
  • Loading branch information
Vacxe authored Jan 5, 2024
2 parents 44b7be9 + 64b02a5 commit abb5719
Show file tree
Hide file tree
Showing 21 changed files with 248 additions and 407 deletions.
25 changes: 0 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath(libs.com.android.tools.build.gradle)
}
}

repositories {
gradlePluginPortal()
google()
}

plugins {
id("io.gitlab.arturbosch.detekt") version libs.versions.detekt
}
Expand All @@ -33,15 +17,6 @@ detekt {
}
}

subprojects {
repositories {
mavenCentral()
google()
}

group = Description.mavenGroup
}

tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = libs.versions.gradle.get()
Expand Down
10 changes: 3 additions & 7 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ plugins {
`kotlin-dsl`
}

repositories {
google()
mavenCentral()
gradlePluginPortal()
}

dependencies {
implementation(libs.org.jetbrains.kotlin.kotlinGradlePlugin )
implementation(libs.org.jetbrains.kotlin.kotlinGradlePlugin)
implementation(libs.com.android.tools.build.gradle)
implementation(libs.org.jetbrains.dokka.dokkaGradlePlugin)
implementation(libs.org.kohsuke.githubApi)
// workaround for https://github.com/gradle/gradle/issues/15383
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
}
6 changes: 6 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ dependencyResolutionManagement {
from(files("../gradle/libs.versions.toml"))
}
}

repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
148 changes: 0 additions & 148 deletions buildSrc/src/main/kotlin/KakaoDeployment.kt

This file was deleted.

137 changes: 0 additions & 137 deletions buildSrc/src/main/kotlin/KakaoExtClicksDeployment.kt

This file was deleted.

5 changes: 0 additions & 5 deletions buildSrc/src/main/kotlin/PackageInfo.kt

This file was deleted.

10 changes: 0 additions & 10 deletions buildSrc/src/main/kotlin/Versions.kt

This file was deleted.

12 changes: 12 additions & 0 deletions buildSrc/src/main/kotlin/convention.android-base.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import com.android.build.gradle.BaseExtension
import io.github.kakaocup.withVersionCatalog

withVersionCatalog { libs ->
configure<BaseExtension> {
compileSdkVersion(libs.versions.compileSdk.get().toInt())
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
multiDexEnabled = true
}
}
}
Loading

0 comments on commit abb5719

Please sign in to comment.