1212 *
1313 * from the commnand-line and the build task will execute by default.
1414 *
15- * The Jar will be built to
15+ * The Jar will be built to
16+ *
17+ * build/libs/stix-${version}.jar
1618 *
17- * build/libs/stix-${version}.jar
18- *
1919 *
2020 * Publishing archives:
2121 *
2222 * signingKeyId, signingPassword, secretKeyFile, ossrhUsername, and ossrhPassword properties
2323 * should be defined outside of the repository either on the command-line via
24- *
24+ *
2525 * ./gradlew -PsigningKeyId=value -PsigningPassword=value -PsecretKeyFile=value -PossrhUsername=value -PossrhPassword=value
2626 *
27- * or via ~/.gradle/gradle.properties as
27+ * or via ~/.gradle/gradle.properties as
2828 *
2929 * signingKeyId=value
3030 * signingPassword=value
3838 *
3939 * ./gradlew uploadArchives
4040 *
41- * Otherwise you can publish a release to staging by executing the "uploadArchives" task
41+ * Otherwise you can publish a release to staging by executing the "uploadArchives" task
4242 * with "release" property like so:
4343 *
4444 * ./gradlew uploadArchives -Prelease
@@ -151,44 +151,48 @@ uploadArchives{
151151 if (! project. hasProperty(" ossrhUsername" )) {
152152 throw new GradleException (" No value has been specified for property 'ossrhUsername'." )
153153 }
154-
154+
155155 if (! project. hasProperty(" ossrhPassword" )) {
156156 throw new GradleException (" No value has been specified for property 'ossrhPassword'." )
157157 }
158-
159158 signing. signPom(deployment)
160159 }
161-
160+
162161 repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
163162 authentication(userName : project. hasProperty(" ossrhUsername" ) ? ossrhUsername : " " , password: project. hasProperty(" ossrhPassword" ) ? ossrhPassword: " " )
164163 }
165-
164+
166165 snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
167166 authentication(userName : project. hasProperty(" ossrhUsername" ) ? ossrhUsername : " " , password: project. hasProperty(" ossrhPassword" ) ? ossrhPassword: " " )
168167 }
169-
168+
170169 pom. project {
171170 name " ${ project.name} "
172171 packaging ' jar'
173172 version " ${ project.version} "
174173 // optionally artifactId can be defined here
175174 description " The Java bindings for STIX v." + version
176175 url " https://github.com/STIXProject/java-stix"
177-
176+
178177 scm {
179178 connection " https://github.com/STIXProject/java-stix.git"
180179 developerConnection " https://github.com/STIXProject/java-stix.git"
181180 url " https://github.com/STIXProject/java-stix"
182181 }
183-
182+
184183 licenses {
185184 license {
186185 name " The BSD 3-Clause License"
187186 url " https://raw.githubusercontent.com/STIXProject/java-stix/master/LICENSE"
188187 }
189188 }
190-
189+
191190 developers {
191+ developer {
192+ id ' stix'
193+ name ' STIX Project, The MITRE Corporation'
194+ email ' stix[ASCII character number 64]mitre.org'
195+ },
192196 developer {
193197 id ' nemonik'
194198 name ' Michael Joseph Walsh'
@@ -208,17 +212,17 @@ gradle.taskGraph.whenReady { taskGraph ->
208212 ext. " signing.secretKeyRingFile" = project. hasProperty(" secretKeyFile" ) ? secretKeyFile: " "
209213 }
210214 }
211-
215+
212216 if (taskGraph. hasTask(tasks. uploadArchives)) {
213217 if (has(" release" )) {
214218 if (! project. hasProperty(" signingKeyId" )) {
215219 throw new GradleException (" No value has been specified for property 'signingKeyId'." )
216220 }
217-
221+
218222 if (! project. hasProperty(" signingPassword" )) {
219223 throw new GradleException (" No value has been specified for property 'signingPassword'." )
220224 }
221-
225+
222226 if (! project. hasProperty(" secretKeyFile" )) {
223227 throw new GradleException (" No value has been specified for property 'secretKeyFile'." )
224228 }
@@ -261,13 +265,13 @@ dependencies {
261265 compile " org.apache.httpcomponents:httpclient-cache:4.3.5"
262266 compile " org.apache.httpcomponents:httpmime:4.3.5"
263267 compile " org.apache.httpcomponents:fluent-hc:4.3.5"
264-
268+
265269 compile " org.springframework:spring-core:4.1.4.RELEASE"
266-
270+
267271 compile " commons-io:commons-io:2.4"
268-
272+
269273 compile " commons-lang:commons-lang:2.6"
270-
274+
271275 testCompile " org.codehaus.groovy:groovy:2.4.3"
272276 testCompile " org.spockframework:spock-core:1.0-groovy-2.4"
273277 testCompile " xmlunit:xmlunit:1.6"
@@ -295,7 +299,7 @@ javadoc {
295299 include " **/org/mitre/**/*"
296300 include " **/org/purl/**/*"
297301 include " **/org/w3/**/*"
298-
302+
299303 options. overview = " src/main/javadoc/overview.html" ;
300304 options. showAll()
301305 options. encoding(" UTF-8" )
@@ -305,7 +309,7 @@ javadoc {
305309 options. windowTitle(" java-stix v." + version)
306310 options. docTitle(" java-stix v." + version)
307311 options. footer(" Copyright (c) 2015, The MITRE Corporation. All rights reserved." )
308-
312+
309313 doFirst {
310314 javadoc. title = " java-stix v." + version
311315 javadoc. options. docTitle = javadoc. title
@@ -335,7 +339,7 @@ buildscript {
335339 jcenter()
336340 mavenCentral()
337341 mavenLocal()
338-
342+
339343 flatDir { dirs " libs" }
340344 }
341345
@@ -351,16 +355,16 @@ buildscript {
351355 classpath name : " org.eclipse.core.resources_3.9.0.v20140514-1307"
352356 classpath name : " org.eclipse.jdt.core_3.10.0.v20140604-1726"
353357 classpath name : " org.eclipse.equinox.registry_3.5.400.v20140428-1507"
354-
358+
355359 // Needed for GenerateJAXBTask
356360 classpath " com.sun.xml.bind:jaxb-xjc:2.2.5-2"
357361 classpath " com.sun.xml.bind:jaxb-impl:2.2.5-2"
358362 classpath " javax.xml.bind:jaxb-api:2.2.+"
359-
363+
360364 classpath " org.jvnet.jaxb2_commons:jaxb2-basics:0.6.5"
361365 classpath " org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.6.5"
362366 classpath " org.jvnet.jaxb2_commons:jaxb2-fluent-api:3.0"
363- classpath " org.jvnet.jaxb2_commons:jaxb2-value-constructor:3.0"
367+ classpath " org.jvnet.jaxb2_commons:jaxb2-value-constructor:3.0"
364368 classpath " org.jvnet.jaxb2_commons:jaxb2-default-value:1.1"
365369 classpath " org.jvnet.jaxb2_commons:jaxb2-namespace-prefix:1.1"
366370 }
0 commit comments