Skip to content

Commit ab0e4da

Browse files
committed
adding jars
1 parent 961fa17 commit ab0e4da

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

build.gradle

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
apply plugin: "java"
1+
apply plugin: 'java'
2+
apply plugin: 'maven'
3+
apply plugin: 'signing'
24

35
sourceCompatibility = 1.7
46
targetCompatibility=1.7
7+
8+
group = "org-hamcrest"
9+
archivesBaseName = "java-hamcrest"
510
version=7.0
611

712

13+
repositories {
14+
mavenCentral()
15+
}
16+
817
dependencies {
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
}

0 commit comments

Comments
 (0)