Skip to content

Commit

Permalink
populate mavenpublish.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Feb 26, 2019
1 parent 21365a8 commit b11ba7e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gradle/mavenpublish.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

apply plugin: "maven-publish"

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

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}

0 comments on commit b11ba7e

Please sign in to comment.