Skip to content

Commit

Permalink
Merge pull request alibaba#63 from SeanCai/master
Browse files Browse the repository at this point in the history
fix build fail issue
  • Loading branch information
SeanCai authored Oct 16, 2017
2 parents 05e1ca9 + 9a2224a commit dca5cd6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions idea-plugin/p3c-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ intellij {
}
version '1.0.0'

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

dependencies {
compile group: 'org.freemarker', name: 'freemarker', version: '2.3.25-incubating'
compile 'com.alibaba.p3c:p3c-pmd:1.3.0'
Expand All @@ -46,11 +48,11 @@ uploadArchives {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
}

pom.project {
Expand Down Expand Up @@ -90,5 +92,8 @@ uploadArchives {
}

signing {
required {
isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives")
}
sign configurations.archives
}
}

0 comments on commit dca5cd6

Please sign in to comment.