Skip to content

Commit 9013afc

Browse files
committed
去掉签名
1 parent 0fa7903 commit 9013afc

File tree

1 file changed

+32
-52
lines changed

1 file changed

+32
-52
lines changed

build.gradle

Lines changed: 32 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ plugins {
3434
id "biz.aQute.bnd.builder" version "6.4.0" apply false
3535
id "org.sonarqube" version "3.5.0.2730"
3636
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'
3838
}
3939

4040
sonarqube {
@@ -51,9 +51,8 @@ subprojects {
5151
apply plugin: 'org.sonarqube'
5252
apply plugin: 'java'
5353
// 要执行子build.gradle中的uploadArchives,得加入maven插件
54-
apply plugin: 'maven'
5554
apply plugin: 'maven-publish'
56-
apply plugin: 'signing'
55+
// apply plugin: 'signing'
5756

5857
repositories {
5958
mavenLocal()
@@ -114,15 +113,15 @@ subprojects {
114113
withJavadocJar()
115114
}
116115

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+
// }
126125

127126
publishing {
128127
publications {
@@ -142,54 +141,35 @@ subprojects {
142141
pom {
143142
name = PROJECT_NAME
144143
description = 'relay.js-compatible GraphQL servlet'
145-
url = 'https://github.com/graphql-java-kickstart/graphql-java-servlet'
146-
inceptionYear = '2016'
144+
}
145+
}
147146

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-
}
153147

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+
}
161149

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()
180160
}
181161
}
182162
}
183163
}
184164

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+
//}
193173

194174
wrapper {
195175
distributionType = Wrapper.DistributionType.ALL

0 commit comments

Comments
 (0)