diff --git a/build.gradle b/build.gradle index 7028f40..10071b7 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id "org.jetbrains.kotlin.jvm" version "1.4.0" id "com.gradle.plugin-publish" version "0.11.0" id 'java-gradle-plugin' - id "maven" + id "maven-publish" } repositories { @@ -35,10 +35,10 @@ compileTestKotlin { group = "com.gaelmarhic" version = "1.7" -uploadArchives { +publishing { repositories { - mavenDeployer { - repository(url: uri('mavenrepo')) + maven { + url = uri('mavenrepo') } } } diff --git a/src/main/kotlin/com/gaelmarhic/quadrant/QuadrantPlugin.kt b/src/main/kotlin/com/gaelmarhic/quadrant/QuadrantPlugin.kt index c0e7539..1738515 100644 --- a/src/main/kotlin/com/gaelmarhic/quadrant/QuadrantPlugin.kt +++ b/src/main/kotlin/com/gaelmarhic/quadrant/QuadrantPlugin.kt @@ -107,8 +107,13 @@ class QuadrantPlugin : Plugin { private fun BaseExtension.sourceSet(name: String) = sourceSets.getByName(name) - private fun Task.isCompileKotlinTask(variant: T) = - name == "compile${variant.name.capitalize()}Kotlin" + private fun Task.isCompileKotlinTask(variant: T): Boolean { + val variantName = variant.name.capitalize() + return name in listOf( + "compile${variantName}Kotlin", + "ksp${variantName}Kotlin", + ) + } companion object {