Skip to content

Commit f46acc1

Browse files
committed
Use proper Gradle Property injection + extract tasks into classes
- SettingsExtension: abstract class with @Inject, Property<String>, Property<Boolean> - Conventions set after creation (outputDir, autoGenerate) - Extract ContextTask and CleanTask into task/ package - SettingsPlugin is now thin — just registers tasks - Matches wrkx architecture pattern
1 parent 023627f commit f46acc1

19 files changed

Lines changed: 1079 additions & 900 deletions

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ plugins {
33
}
44

55
dependencies {
6-
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:2.1.20")
7-
testImplementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:2.1.20")
6+
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:2.1.20")
87
}
98

109
gradlePlugin {

src/main/kotlin/zone/clanker/gradle/srcx/Srcx.kt

Lines changed: 47 additions & 571 deletions
Large diffs are not rendered by default.

src/main/kotlin/zone/clanker/gradle/srcx/SrcxDsl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.gradle.api.initialization.Settings
1212
* }
1313
*
1414
* srcx {
15-
* outputDir = ".srcx"
15+
* outputDir.set(".srcx")
1616
* }
1717
* ```
1818
*

0 commit comments

Comments
 (0)