Skip to content

Commit

Permalink
add source jar task
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Apr 20, 2017
1 parent fe34990 commit 62f659d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ dependencies {
})

compile project(':easythread')
// compile 'com.github.yjfnypeu:EasyThread:61d915cd51'
// compile 'com.github.yjfnypeu:EasyThread:fe34990173'
testCompile 'junit:junit:4.12'
}
16 changes: 16 additions & 0 deletions easythread/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,19 @@ dependencies {
}
sourceCompatibility = "1.7"
targetCompatibility = "1.7"


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 62f659d

Please sign in to comment.