File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed 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'
2
4
3
5
sourceCompatibility = 1.7
4
6
targetCompatibility= 1.7
7
+
8
+ group = " org-hamcrest"
9
+ archivesBaseName = " java-hamcrest"
5
10
version= 7.0
6
11
7
12
13
+ repositories {
14
+ mavenCentral()
15
+ }
16
+
8
17
dependencies {
9
18
testCompile(group : ' junit' , name : ' junit' , version : ' 4.+' ) {
10
19
transitive = false
@@ -31,10 +40,22 @@ jar {
31
40
' Implementation-Vendor' : ' hamcrest.org' ,
32
41
' Implementation-Version' : version
33
42
}
43
+ }
44
+
45
+ task sourcesJar (type : Jar ) {
46
+ classifier = ' sources'
34
47
from sourceSets. main. allSource
35
- baseName = ' java-hamcrest'
36
48
}
37
49
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
40
61
}
You can’t perform that action at this time.
0 commit comments