Browse Source

Merge pull request #82 in CORE/base-third from ~DANIEL/base-third:10.0 to 10.0

* commit '484747aec15efbaedea8c7e8a9b4340476545b99':
  build
10.0
daniel 6 years ago
parent
commit
65eb8eaaf4
  1. 28
      build.third_step0.gradle

28
build.third_step0.gradle

@ -65,6 +65,7 @@ publishing {
groupId "com.fr.third" groupId "com.fr.third"
artifactId "fine-third" artifactId "fine-third"
version maven_version version maven_version
ext.repo = 'release'
from components.java from components.java
} }
@ -72,15 +73,24 @@ publishing {
groupId "com.fr.third" groupId "com.fr.third"
artifactId "fine-third" artifactId "fine-third"
version maven_version_build version maven_version_build
ext.repo = 'snapshot'
from components.java from components.java
} }
} }
repositories { repositories {
maven { maven {
name "release"
url "http://mvn.finedevelop.com/repository/fanruan-release/"
credentials {
username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD")
}
def releasesRepoUrl = "http://mvn.finedevelop.com/repository/fanruan-release/" }
def snapshotsRepoUrl = "http://mvn.finedevelop.com/repository/fanruan/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl maven {
name "snapshot"
url "http://mvn.finedevelop.com/repository/fanruan/"
credentials { credentials {
username = findProperty("NEXUS_USERNAME") username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD") password = findProperty("NEXUS_PASSWORD")
@ -90,6 +100,17 @@ publishing {
} }
} }
afterEvaluate {
tasks.withType(PublishToMavenRepository) { task ->
if (task.publication.hasProperty('repo') && task.publication.repo != task.repository.name) {
task.enabled = false
task.group = null
}
}
}
task unpack(type:Copy) { task unpack(type:Copy) {
delete classesDir delete classesDir
destinationDir=file(classesDir) destinationDir=file(classesDir)
@ -118,4 +139,3 @@ task unpack(type:Copy) {
} }
jar.dependsOn unpack jar.dependsOn unpack

Loading…
Cancel
Save