Skip to content

Commit

Permalink
Removed embedded dependencies (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzo authored Dec 24, 2024
1 parent e6f0a8d commit 57320ca
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 43 deletions.
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ slf4j = { module = "org.slf4j:slf4j-api", version = "2.0.16" }
android-application = { id = "com.android.application", version.ref = "android" }
android-library = { id = "com.android.library", version.ref = "android" }
buildConfig = { id = "com.github.gmazzo.buildconfig", version = "5.5.1" }
importClasses = { id = "io.github.gmazzo.importclasses", version = "1.0.2" }
importClasses = { id = "io.github.gmazzo.importclasses", version = "1.0.3" }
embeddedDependencies = { id = "io.github.gmazzo.dependencies.embedded", version = "1.0.3" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
Expand Down
33 changes: 0 additions & 33 deletions plugins/buildSrc/src/main/kotlin/embedded-dependencies.gradle.kts

This file was deleted.

9 changes: 7 additions & 2 deletions plugins/kotlin-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.embeddedDependencies)
`compiler-arguments`
`jvm-convention-module`
`embedded-dependencies`
}

description = "CodeOwners Kotlin Compiler Plugin"
Expand All @@ -16,5 +16,10 @@ buildConfig {
dependencies {
compileOnly(libs.kotlin.plugin.compiler.api)

embedded(projects.matcher)
// TODO for some strange reason, KMP sets `isTransitive = false` on the `kotlinCompilerPluginClasspathIosArm64Main` configuration
// which causes any dependency to be ignored, so we have bundle them all here
// https://scans.gradle.com/s/hdmdwh42uxmpy/dependencies?focusedDependency=WzUsNTYsNTA3LFs1LDU2LFs1MDddXV0&focusedDependencyView=dependencies_or_failure&toggled=W1s1XSxbNSwzN10sWzUsMzcsWzU1MV1dLFs1LDM3LFs1NTEsNTUyXV0sWzUsNTZdXQ
embedded(projects.matcher) {
exclude(group = "org.jetbrains.kotlin")
}
}
5 changes: 2 additions & 3 deletions plugins/kotlin-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.gradle.configurationcache.extensions.capitalized

plugins {
alias(libs.plugins.kotlin.multiplatform)
`jvm-convention-module`
Expand All @@ -23,7 +21,8 @@ dependencies {
}

publishing.publications.withType<MavenPublication>().configureEach pub@{
val javadocTask = tasks.register<Jar>("javadoc${this@pub.name.capitalized()}") {

val javadocTask = tasks.register<Jar>("javadoc${this@pub.name.replaceFirstChar { it.uppercase() }}") {
archiveBaseName = "${project.name}-${this@pub.name}"
archiveClassifier = "javadoc"
from(tasks.dokkaHtml)
Expand Down
4 changes: 0 additions & 4 deletions plugins/matcher/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.importClasses)
`jvm-convention-module`
`embedded-dependencies`
}

description = "CodeOwners Matcher Library"
Expand All @@ -11,10 +10,7 @@ sourceSets.main {
importClasses(libs.jgit) {
repackageTo = "io.github.gmazzo.codeowners.matcher.jgit"
keep("org.eclipse.jgit.ignore.FastIgnoreRule")

exclude("META-INF/**/module-info.class")
include("**.class")
exclude("**.*")
}
}

Expand Down

0 comments on commit 57320ca

Please sign in to comment.