File tree Expand file tree Collapse file tree 1 file changed +62
-2
lines changed
Expand file tree Collapse file tree 1 file changed +62
-2
lines changed Original file line number Diff line number Diff line change 1+ apply plugin : ' java'
2+ apply plugin : ' maven'
3+ apply plugin : ' signing'
4+
15group ' com.assertthat'
6+ archivesBaseName = " selenium-shutterbug"
27version ' 0.1'
38
4- apply plugin : ' java'
5-
69sourceCompatibility = 1.7
10+ targetCompatibility = 1.7
711
812repositories {
913 mavenCentral()
@@ -13,3 +17,59 @@ dependencies {
1317 testCompile ' junit:junit:4.12'
1418 compile group : ' org.seleniumhq.selenium' , name : ' selenium-java' , version : ' 2.53.0'
1519}
20+
21+ task javadocJar (type : Jar ) {
22+ classifier = ' javadoc'
23+ from javadoc
24+ }
25+
26+ task sourcesJar (type : Jar ) {
27+ classifier = ' sources'
28+ from sourceSets. main. allSource
29+ }
30+
31+ artifacts {
32+ archives javadocJar, sourcesJar
33+ }
34+
35+ signing {
36+ sign configurations. archives
37+ }
38+
39+ uploadArchives {
40+ repositories {
41+ mavenDeployer {
42+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
43+
44+ pom. project {
45+ name ' Selenium Shutterbug'
46+ packaging ' jar'
47+
48+ description ' Utility library to create customized screenshots using Selenium'
49+ url ' https://github.com/glib-briia/selenium-shutterbug'
50+
51+ scm {
52+ connection ' scm:git:https://github.com/assertthat/selenium-shutterbug.git'
53+ developerConnection ' scm:git:https://github.com/assertthat/selenium-shutterbug.git'
54+ url ' https://github.com/assertthat/selenium-shutterbug/'
55+ }
56+
57+ licenses {
58+ license {
59+ name ' The MIT License (MIT)'
60+ url ' https://github.com/assertthat/selenium-shutterbug/blob/master/LICENSE'
61+ distribution ' repo'
62+ }
63+ }
64+
65+ developers {
66+ developer {
67+ id ' glib-briia'
68+ name ' Glib Briia'
69+ email ' glib.brii@assertthat.com'
70+ }
71+ }
72+ }
73+ }
74+ }
75+ }
You can’t perform that action at this time.
0 commit comments