File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ targetCompatibility = VERSION_1_7
99archivesBaseName = " java-hamcrest"
1010
1111group = " org.hamcrest"
12- version= " 2.0.0.0"
12+ version = " 2.0.0.0"
1313
1414
1515repositories {
@@ -64,50 +64,50 @@ signing {
6464}
6565
6666uploadArchives {
67- repositories {
68- mavenDeployer {
69- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
67+ if (hasProperty(' ossrhUsername' ) && hasProperty(' ossrhPassword' )) {
68+ repositories {
69+ mavenDeployer {
70+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
7071
71- if (hasProperty(' ossrhUsername' ) && hasProperty(' ossrhPassword' )) {
7272 repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
7373 authentication(userName : ossrhUsername, password : ossrhPassword)
7474 }
7575
7676 snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
7777 authentication(userName : ossrhUsername, password : ossrhPassword)
7878 }
79- }
80-
81- pom. project {
82- name ' Java Hamcrest'
83- packaging ' jar'
84- description ' Hamcrest matcher library for Java'
85- url ' http://hamcrest.org/JavaHamcrest/'
8679
87- scm {
88- connection ' git@github.com:hamcrest/JavaHamcrest.git'
89- url ' https://github.com/hamcrest/JavaHamcrest'
90- }
80+ pom. project {
81+ name ' Java Hamcrest'
82+ packaging ' jar'
83+ description ' Hamcrest matcher library for Java'
84+ url ' http://hamcrest.org/JavaHamcrest/'
9185
92- licenses {
93- license {
94- name ' BSD Licence 3'
95- url ' http://opensource.org/licenses/BSD-3-Clause'
86+ scm {
87+ connection ' git@github.com:hamcrest/JavaHamcrest.git'
88+ url ' https://github.com/hamcrest/JavaHamcrest'
9689 }
97- }
9890
99- developers {
100- developer {
101- id ' joewalnes'
102- name ' Joe Walnes'
103- }
104- developer {
105- id ' npryce'
106- name ' Nat Pryce'
91+ licenses {
92+ license {
93+ name ' BSD Licence 3'
94+ url ' http://opensource.org/licenses/BSD-3-Clause'
95+ }
10796 }
108- developer {
109- id ' sf105'
110- name ' Steve Freeman'
97+
98+ developers {
99+ developer {
100+ id ' joewalnes'
101+ name ' Joe Walnes'
102+ }
103+ developer {
104+ id ' npryce'
105+ name ' Nat Pryce'
106+ }
107+ developer {
108+ id ' sf105'
109+ name ' Steve Freeman'
110+ }
111111 }
112112 }
113113 }
You can’t perform that action at this time.
0 commit comments