@@ -34,7 +34,7 @@ plugins {
34
34
id " biz.aQute.bnd.builder" version " 6.4.0" apply false
35
35
id " org.sonarqube" version " 3.5.0.2730"
36
36
id " jacoco"
37
- id " io.github.gradle-nexus.publish-plugin" version ' 1.1.0'
37
+ // id "io.github.gradle-nexus.publish-plugin" version '1.1.0'
38
38
}
39
39
40
40
sonarqube {
@@ -51,9 +51,8 @@ subprojects {
51
51
apply plugin : ' org.sonarqube'
52
52
apply plugin : ' java'
53
53
// 要执行子build.gradle中的uploadArchives,得加入maven插件
54
- apply plugin : ' maven'
55
54
apply plugin : ' maven-publish'
56
- apply plugin : ' signing'
55
+ // apply plugin: 'signing'
57
56
58
57
repositories {
59
58
mavenLocal()
@@ -114,15 +113,15 @@ subprojects {
114
113
withJavadocJar()
115
114
}
116
115
117
- if (! version. toString(). endsWith(' -SNAPSHOT' )) {
118
- ext[" signing.keyId" ] = System . env. SIGNING_KEY_ID
119
- ext[" signing.password" ] = System . env. SIGNING_PASSWORD
120
- ext[" signing.secretKeyRingFile" ] = System . env. SIGNING_SECRET_KEY_RING_FILE
121
-
122
- signing {
123
- sign publishing. publications
124
- }
125
- }
116
+ // if (!version.toString().endsWith('-SNAPSHOT')) {
117
+ // ext["signing.keyId"] = System.env.SIGNING_KEY_ID
118
+ // ext["signing.password"] = System.env.SIGNING_PASSWORD
119
+ // ext["signing.secretKeyRingFile"] = System.env.SIGNING_SECRET_KEY_RING_FILE
120
+ //
121
+ // signing {
122
+ // sign publishing.publications
123
+ // }
124
+ // }
126
125
127
126
publishing {
128
127
publications {
@@ -142,54 +141,35 @@ subprojects {
142
141
pom {
143
142
name = PROJECT_NAME
144
143
description = ' relay.js-compatible GraphQL servlet'
145
- url = ' https://github.com/graphql-java-kickstart/graphql-java-servlet '
146
- inceptionYear = ' 2016 '
144
+ }
145
+ }
147
146
148
- scm {
149
- url = ' https://github.com/graphql-java-kickstart/graphql-java-servlet'
150
- connection = ' scm:https://github.com/graphql-java-kickstart/graphql-java-servlet.git'
151
- developerConnection = ' scm:git://github.com/graphql-java-kickstart/graphql-java-servlet.git'
152
- }
153
147
154
- licenses {
155
- license {
156
- name = ' The Apache Software License, Version 2.0'
157
- url = ' https://www.apache.org/licenses/LICENSE-2.0.txt'
158
- distribution = ' repo'
159
- }
160
- }
148
+ }
161
149
162
- developers {
163
- developer {
164
- id = ' oliemansm'
165
- name = ' Michiel Oliemans'
166
- }
167
- developer {
168
- id = ' yrashk'
169
- name = ' Yurii Rashkovskii'
170
-
171
- }
172
- developer {
173
- id = ' apottere'
174
- name = ' Andrew Potter'
175
-
176
- }
177
- }
178
- }
179
- }
150
+ repositories {
151
+ // maven {
152
+ // name = 'OnePiece'
153
+ // url 'https://nexus.8btc-ops.com/repository/maven-releases/'
154
+ // credentials {
155
+ // username = System.env.MAVEN_CENTRAL_USER
156
+ // password = System.env.MAVEN_CENTRAL_PASSWORD
157
+ // }
158
+ // }
159
+ mavenLocal()
180
160
}
181
161
}
182
162
}
183
163
}
184
164
185
- nexusPublishing {
186
- repositories {
187
- sonatype {
188
- username = System . env. OSS_USER_TOKEN_KEY ?: project. findProperty(' OSS_USER_TOKEN_KEY' ) ?: ' '
189
- password = System . env. OSS_USER_TOKEN_PASS ?: project. findProperty(' OSS_USER_TOKEN_PASS' ) ?: ' '
190
- }
191
- }
192
- }
165
+ // nexusPublishing {
166
+ // repositories {
167
+ // sonatype {
168
+ // username = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
169
+ // password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
170
+ // }
171
+ // }
172
+ // }
193
173
194
174
wrapper {
195
175
distributionType = Wrapper.DistributionType . ALL
0 commit comments