Skip to content

Commit

Permalink
Add license info to pom and package source and javadoc artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedol committed Jan 11, 2018
1 parent b9cfdf0 commit ef129ae
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions serializer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,28 @@ dependencies {
compile appDependencies.gson
testCompile appTestDependencies.junit
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}

0 comments on commit ef129ae

Please sign in to comment.