File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- apply plugin : " java"
1+ apply plugin : ' java'
2+ apply plugin : ' maven'
3+ apply plugin : ' signing'
24
35sourceCompatibility = 1.7
46targetCompatibility= 1.7
7+
8+ group = " org-hamcrest"
9+ archivesBaseName = " java-hamcrest"
510version= 7.0
611
712
13+ repositories {
14+ mavenCentral()
15+ }
16+
817dependencies {
918 testCompile(group : ' junit' , name : ' junit' , version : ' 4.+' ) {
1019 transitive = false
@@ -31,10 +40,22 @@ jar {
3140 ' Implementation-Vendor' : ' hamcrest.org' ,
3241 ' Implementation-Version' : version
3342 }
43+ }
44+
45+ task sourcesJar (type : Jar ) {
46+ classifier = ' sources'
3447 from sourceSets. main. allSource
35- baseName = ' java-hamcrest'
3648}
3749
38- repositories {
39- mavenCentral()
50+ task javadocJar (type : Jar ) {
51+ classifier = ' javadoc'
52+ from javadoc
53+ }
54+
55+ artifacts {
56+ archives sourcesJar, javadocJar
57+ }
58+
59+ signing {
60+ sign configurations. archives
4061}
You can’t perform that action at this time.
0 commit comments