Skip to content

Commit

Permalink
Publish sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Trotsenko committed Aug 7, 2021
1 parent 47149d4 commit 07aa052
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions kotpass/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,9 @@ tasks.named('jar') {
}
}

test {
useJUnitPlatform()
}

dependencies {
testImplementation libs.testing.kotest
testImplementation libs.kotlin.reflect

implementation libs.kotlin.xml.builder
implementation libs.okio
task sourceJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}

publishing {
Expand All @@ -54,6 +47,19 @@ publishing {
version = ArtifactVersion

from components.java
artifact tasks.sourceJar
}
}
}

test {
useJUnitPlatform()
}

dependencies {
testImplementation libs.testing.kotest
testImplementation libs.kotlin.reflect

implementation libs.kotlin.xml.builder
implementation libs.okio
}

0 comments on commit 07aa052

Please sign in to comment.