Skip to content

Commit c149242

Browse files
Copilotalexandru
andcommitted
Fix build.gradle.kts: Remove duplicate tasks and JVM-specific code
- Remove duplicate tasks block that was causing compilation errors - Remove JVM-specific tasks (JavaCompile, KotlinCompile with JVM target) - Remove ktor fatJar configuration (not applicable to native) - Keep only native-relevant configuration - Build configuration now parses correctly Note: Full compilation test blocked by network restrictions in this environment preventing Kotlin/Native toolchain download, but configuration is now valid. Co-authored-by: alexandru <[email protected]>
1 parent c6bc354 commit c149242

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

build.gradle.kts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -90,46 +90,3 @@ tasks {
9090
reportfileName = "report"
9191
}
9292
}
93-
94-
// kotlin {
95-
// jvmToolchain(22)
96-
// }
97-
98-
tasks {
99-
withType<JavaCompile>().configureEach {
100-
options.release.set(21)
101-
}
102-
103-
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
104-
compilerOptions {
105-
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
106-
javaParameters.set(true)
107-
}
108-
}
109-
110-
named<DependencyUpdatesTask>("dependencyUpdates").configure {
111-
fun isNonStable(version: String): Boolean {
112-
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
113-
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
114-
val isStable = stableKeyword || regex.matches(version)
115-
return isStable.not()
116-
}
117-
118-
rejectVersionIf {
119-
isNonStable(candidate.version) && !isNonStable(currentVersion)
120-
}
121-
checkForGradleUpdate = true
122-
outputFormatter = "html"
123-
outputDir = "build/dependencyUpdates"
124-
reportfileName = "report"
125-
}
126-
127-
test {
128-
}
129-
}
130-
131-
ktor {
132-
fatJar {
133-
archiveFileName.set("github-webhook-listener-fat.jar")
134-
}
135-
}

0 commit comments

Comments
 (0)