Skip to content

Commit ea8aef9

Browse files
yigittschuchortdev
authored andcommitted
Setup publishing for the KSP artifact
This PR adds an ARTIFACT_ID to the KSP module so that it won't use the same name as the main artifact. I've also changed it to declare dependency on the main module with the version name so that the generated POM does have the version.
1 parent 5ca0824 commit ea8aef9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ksp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repositories {
4343
dependencies {
4444
// We do not specify a version here because `kotlin-compile-testing` is an included build and gradle will use the
4545
// main module of the main project as the dependency.
46-
api("com.github.tschuchortdev:kotlin-compile-testing")
46+
api("com.github.tschuchortdev:kotlin-compile-testing:$VERSION_NAME")
4747
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
4848
implementation "org.jetbrains.kotlin:kotlin-symbol-processing-api:$ksp_version"
4949
implementation "org.jetbrains.kotlin:kotlin-ksp:$ksp_version"

ksp/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POM_ARTIFACT_ID=kotlin-compile-testing-ksp
2+

0 commit comments

Comments
 (0)