Skip to content

Commit

Permalink
Add source artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 11, 2018
1 parent d9fbe6b commit 9f9e09a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ compileJava {
sourceCompatibility = targetCompatibility = 1.8
}

task('sourceJar', type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives jar
archives sourceJar
}

repositories {
mavenCentral()

Expand Down

0 comments on commit 9f9e09a

Please sign in to comment.