@@ -38,108 +38,107 @@ allprojects {
38
38
// Allowed projects to publish to maven
39
39
val allowedProjectsToPublish = listOf (" apollo" )
40
40
if (allowedProjectsToPublish.contains(project.name) && project.name.contains(" androidDebug" )) {
41
- publishing {
41
+ nexusPublishing {
42
42
repositories {
43
- maven {
44
- name = " OSSRH"
45
- url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
46
- credentials {
47
- username =
48
- project.findProperty(" sonatypeUsername" ) as String? ? : System .getenv(" OSSRH_USERNAME" )
49
- password = project.findProperty(" sonatypePassword" ) as String? ? : System .getenv(" OSSRH_TOKEN" )
50
- }
43
+ sonatype {
44
+ nexusUrl.set(uri(" https://oss.sonatype.org/service/local/" ))
45
+ snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
46
+ username.set(System .getenv(" OSSRH_USERNAME" ))
47
+ password.set(System .getenv(" OSSRH_TOKEN" ))
51
48
}
52
49
}
53
- publications {
54
- withType<MavenPublication > {
55
- groupId = publishedMavenId
56
- artifactId = project.name
57
- version = project.version.toString()
58
- pom {
59
- name.set(" Identus Apollo" )
60
- description.set(" Collection of the cryptographic methods used all around Identus platform" )
61
- url.set(" https://docs.atalaprism.io/" )
62
- organization {
63
- name.set(" IOG" )
64
- url.set(" https://iog.io/" )
65
- }
66
- issueManagement {
67
- system.set(" Github" )
68
- url.set(" https://github.com/hyperledger/identus-apollo" )
69
- }
70
- licenses {
71
- license {
72
- name.set(" The Apache License, Version 2.0" )
73
- url.set(" https://www.apache.org/licenses/LICENSE-2.0.txt" )
74
- }
75
- }
76
- developers {
77
- developer {
78
- id.set(" hamada147" )
79
- name.set(" Ahmed Moussa" )
80
-
81
- organization.set(" IOG" )
82
- roles.add(" developer" )
83
- url.set(" https://github.com/hamada147" )
50
+ publishing {
51
+ publications {
52
+ withType<MavenPublication > {
53
+ groupId = publishedMavenId
54
+ artifactId = project.name
55
+ version = project.version.toString()
56
+ pom {
57
+ name.set(" Identus Apollo" )
58
+ description.set(" Collection of the cryptographic methods used all around Identus platform" )
59
+ url.set(" https://docs.atalaprism.io/" )
60
+ organization {
61
+ name.set(" IOG" )
62
+ url.set(" https://iog.io/" )
84
63
}
85
- developer {
86
- id.set(" amagyar-iohk" )
87
- name.set(" Allain Magyar" )
88
-
89
- organization.set(" IOG" )
90
- roles.add(" qc" )
64
+ issueManagement {
65
+ system.set(" Github" )
66
+ url.set(" https://github.com/hyperledger/identus-apollo" )
91
67
}
92
- developer {
93
- id.set(" antonbaliasnikov" )
94
- name.set(" Anton Baliasnikov" )
95
-
96
- organization.set(" IOG" )
97
- roles.add(" qc" )
68
+ licenses {
69
+ license {
70
+ name.set(" The Apache License, Version 2.0" )
71
+ url.set(" https://www.apache.org/licenses/LICENSE-2.0.txt" )
72
+ }
98
73
}
99
- developer {
100
- id.set(" elribonazo" )
101
- name.set(" Javier Ribó" )
102
-
103
- organization.set(" IOG" )
104
- roles.add(" developer" )
74
+ developers {
75
+ developer {
76
+ id.set(" hamada147" )
77
+ name.set(" Ahmed Moussa" )
78
+
79
+ organization.set(" IOG" )
80
+ roles.add(" developer" )
81
+ url.set(" https://github.com/hamada147" )
82
+ }
83
+ developer {
84
+ id.set(" amagyar-iohk" )
85
+ name.set(" Allain Magyar" )
86
+
87
+ organization.set(" IOG" )
88
+ roles.add(" qc" )
89
+ }
90
+ developer {
91
+ id.set(" antonbaliasnikov" )
92
+ name.set(" Anton Baliasnikov" )
93
+
94
+ organization.set(" IOG" )
95
+ roles.add(" qc" )
96
+ }
97
+ developer {
98
+ id.set(" elribonazo" )
99
+ name.set(" Javier Ribó" )
100
+
101
+ organization.set(" IOG" )
102
+ roles.add(" developer" )
103
+ }
104
+ developer {
105
+ id.set(" goncalo-frade-iohk" )
106
+ name.set(" Gonçalo Frade" )
107
+
108
+ organization.set(" IOG" )
109
+ roles.add(" developer" )
110
+ }
111
+ developer {
112
+ id.set(" curtis-h" )
113
+ name.set(" Curtis Harding" )
114
+
115
+ organization.set(" IOG" )
116
+ roles.add(" developer" )
117
+ }
118
+ developer {
119
+ id.set(" cristianIOHK" )
120
+ name.set(" Cristian Gonzalez" )
121
+
122
+ organization.set(" IOG" )
123
+ roles.add(" developer" )
124
+ }
105
125
}
106
- developer {
107
- id.set(" goncalo-frade-iohk" )
108
- name.set(" Gonçalo Frade" )
109
-
110
- organization.set(" IOG" )
111
- roles.add(" developer" )
126
+ scm {
127
+ connection.set(
" scm:git:git://[email protected] /hyperledger/identus-apollo.git" )
128
+ developerConnection.set(
" scm:git:ssh://[email protected] /hyperledger/identus-apollo.git" )
129
+ url.set(" https://github.com/hyperledger/identus-apollo" )
112
130
}
113
- developer {
114
- id.set(" curtis-h" )
115
- name.set(" Curtis Harding" )
116
-
117
- organization.set(" IOG" )
118
- roles.add(" developer" )
119
- }
120
- developer {
121
- id.set(" cristianIOHK" )
122
- name.set(" Cristian Gonzalez" )
123
-
124
- organization.set(" IOG" )
125
- roles.add(" developer" )
126
- }
127
- }
128
- scm {
129
- connection.set(
" scm:git:git://[email protected] /hyperledger/identus-apollo.git" )
130
- developerConnection.set(
" scm:git:ssh://[email protected] /hyperledger/identus-apollo.git" )
131
- url.set(" https://github.com/hyperledger/identus-apollo" )
132
131
}
133
- }
134
132
135
- signing {
136
- useInMemoryPgpKeys(
137
- project.findProperty(" signing.signingSecretKey" ) as String?
138
- ? : System .getenv(" OSSRH_GPG_SECRET_KEY" ),
139
- project.findProperty(" signing.signingSecretKeyPassword" ) as String?
140
- ? : System .getenv(" OSSRH_GPG_SECRET_KEY_PASSWORD" )
141
- )
142
- sign(this @withType)
133
+ signing {
134
+ useInMemoryPgpKeys(
135
+ project.findProperty(" signing.signingSecretKey" ) as String?
136
+ ? : System .getenv(" OSSRH_GPG_SECRET_KEY" ),
137
+ project.findProperty(" signing.signingSecretKeyPassword" ) as String?
138
+ ? : System .getenv(" OSSRH_GPG_SECRET_KEY_PASSWORD" )
139
+ )
140
+ sign(this @withType)
141
+ }
143
142
}
144
143
}
145
144
}
0 commit comments