Skip to content

Commit 1f32e72

Browse files
committed
fix build gradle
1 parent 9d0d381 commit 1f32e72

File tree

1 file changed

+5
-54
lines changed

1 file changed

+5
-54
lines changed

build.gradle

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ apply plugin: 'biz.aQute.bnd.builder'
2424
apply plugin: 'com.jfrog.bintray'
2525
apply plugin: 'maven-publish'
2626

27-
apply plugin: 'signing'
28-
29-
3027
def releaseVersion = System.properties.RELEASE_VERSION
3128
version = releaseVersion ? releaseVersion : new SimpleDateFormat('yyyy-MM-dd\'T\'HH-mm-ss').format(new Date())
3229

@@ -41,30 +38,12 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
4138
from javadoc.destinationDir
4239
}
4340

44-
task signPom(type: Sign) {
45-
sign project.file('build/publications/maven/pom-default.xml')
46-
outputs.upToDateWhen { false } // the signing plugin does not seem to notice
47-
// it when the publications folder with the
48-
// signature has been deleted. So we always
49-
// create a new signature
50-
}
51-
52-
ext {
53-
pomFile = file("${project.buildDir}/generated-pom.xml")
54-
isReleaseVersion = !(project.version =~ /-SNAPSHOT$/)
55-
}
56-
57-
58-
signing {
59-
sign configurations.archives
41+
idea {
42+
project {
43+
languageLevel = '1.8'
44+
vcs = 'Git'
45+
}
6046
}
61-
62-
//idea {
63-
// project {
64-
// languageLevel = '1.8'
65-
// vcs = 'Git'
66-
// }
67-
//}
6847
release {
6948
tagTemplate = 'v${version}'
7049
failOnPublishNeeded = false
@@ -103,7 +82,6 @@ dependencies {
10382

10483
test.useTestNG()
10584

106-
10785
publishing {
10886
publications {
10987
maven(MavenPublication) {
@@ -115,8 +93,6 @@ publishing {
11593
artifact sourcesJar
11694
artifact javadocJar
11795

118-
119-
12096
pom.withXml {
12197
asNode().children().last() + {
12298
resolveStrategy = Closure.DELEGATE_FIRST
@@ -158,31 +134,6 @@ publishing {
158134
}
159135
}
160136
}
161-
162-
pom.withXml {
163-
writeTo(project.ext.pomFile)
164-
def pomAscFile = signing.sign(project.ext.pomFile).signatureFiles[0]
165-
artifact(pomAscFile) {
166-
classifier = null
167-
extension = 'pom.asc'
168-
}
169-
project.ext.pomFile.delete()
170-
}
171-
172-
// Sign the artifacts.
173-
project.tasks.signArchives.signatureFiles.each {
174-
artifact(it) {
175-
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
176-
if (matcher.find()) {
177-
classifier = matcher.group(1)
178-
} else {
179-
classifier = null
180-
}
181-
extension = 'jar.asc'
182-
}
183-
}
184-
185-
186137
}
187138
}
188139
}

0 commit comments

Comments
 (0)