File tree Expand file tree Collapse file tree 1 file changed +38
-15
lines changed Expand file tree Collapse file tree 1 file changed +38
-15
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' java'
2
2
apply plugin : ' maven'
3
- apply plugin : ' maven-publish'
4
3
apply plugin : ' signing'
5
4
6
5
group = ' com.unquietcode.tools.spring'
@@ -27,22 +26,46 @@ artifacts {
27
26
archives javadocJar
28
27
}
29
28
30
- def AorB = { String a , String b ->
31
- return a != null && ! a. trim(). isEmpty() ? a : b;
32
- }
29
+ uploadArchives {
30
+ repositories {
31
+ mavenDeployer {
32
+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
33
33
34
- publishing {
35
- publications {
36
- mavenJava(MavenPublication ) {
37
- from components. java
38
- artifact sourcesJar
39
- artifact javadocJar
40
- }
41
- }
34
+ repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
35
+ authentication(userName : ossrhUsername, password : ossrhPassword)
36
+ }
42
37
43
- repositories {
44
- maven {
45
- url AorB (System . getProperty(" maven.deploy.repository" ), " $buildDir /repo" )
38
+ snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
39
+ authentication(userName : ossrhUsername, password : ossrhPassword)
40
+ }
41
+
42
+ pom. project {
43
+ name ' Spring Generics'
44
+ packaging ' jar'
45
+ description ' Procedurally extracted version of the Spring Framework\' s wonderful generics utilities.'
46
+ url ' https://github.com/UnquietCode/spring-generics'
47
+
48
+ scm {
49
+ connection ' scm:git:https://github.com/UnquietCode/spring-generics.git'
50
+ developerConnection ' scm:git:https://github.com/UnquietCode/spring-generics.git'
51
+ url ' https://github.com/SomMeri/less4j'
52
+ }
53
+
54
+ licenses {
55
+ license {
56
+ name ' The Apache License, Version 2.0'
57
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
58
+ }
59
+ }
60
+
61
+ developers {
62
+ developer {
63
+ id ' unquietcode'
64
+ name ' Benjamin Fagin'
65
+ email ' blouis@unquietcode.com'
66
+ }
67
+ }
68
+ }
46
69
}
47
70
}
48
71
}
You can’t perform that action at this time.
0 commit comments