Skip to content

Commit

Permalink
[feat] #1 build plugin gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed Apr 10, 2024
1 parent 026b8a7 commit 21af2d2
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-logic/convention/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
45 changes: 45 additions & 0 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
plugins {
`kotlin-dsl`
}

group = "org.sopt.convention"

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
compileOnly(libs.android.gradle.plugin)
compileOnly(libs.kotlin.gradle.plugin)
compileOnly(libs.ksp.gradle.plugin)
}

gradlePlugin {
plugins {
register("androidApplication") {
id = "sopt.android.application"
implementationClass = "AndroidApplicationPlugin"
}

register("androidLibrary") {
id = "sopt.android.library"
implementationClass = "AndroidLibraryPlugin"
}

register("androidHilt") {
id = "sopt.android.hilt"
implementationClass = "HiltPlugin"
}

register("javaLibrary") {
id = "sopt.java.library"
implementationClass = "JavaLibraryPlugin"
}

register("FeaturePlugin") {
id = "sopt.plugin.feature"
implementationClass = "FeaturePlugin"
}
}
}
14 changes: 14 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}

rootProject.name = "build-logic"
include(":convention")

0 comments on commit 21af2d2

Please sign in to comment.