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