diff --git a/build.gradle.kts b/build.gradle.kts index c520347..3021a0b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,4 +38,15 @@ tasks.test { testLogging { events("passed", "skipped", "failed") } -} \ No newline at end of file +} + +tasks { + val sourcesJar by creating(Jar::class) { + dependsOn(JavaPlugin.CLASSES_TASK_NAME) + from(sourceSets["main"].allSource) + } + + artifacts { + add("archives", sourcesJar) + } +}