Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Generate source and javadoc jars
Browse files Browse the repository at this point in the history
  • Loading branch information
Daomephsta committed Jan 9, 2019
1 parent e17ac89 commit 7c006f8
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins
{
plugins {
id 'java-library'
}

Expand All @@ -9,14 +8,12 @@ archivesBaseName='unpick'

targetCompatibility = 1.8

repositories
{
repositories {
jcenter()
mavenCentral()
}

dependencies
{
dependencies {
implementation 'org.ow2.asm:asm:7.0'
implementation 'org.ow2.asm:asm-commons:7.0'
implementation 'org.ow2.asm:asm-tree:7.0'
Expand All @@ -25,3 +22,18 @@ dependencies
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}

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
}

0 comments on commit 7c006f8

Please sign in to comment.