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. 32
      build.third_step0.gradle

32
build.third_step0.gradle

@ -65,6 +65,7 @@ publishing {
groupId "com.fr.third"
artifactId "fine-third"
version maven_version
ext.repo = 'release'
from components.java
}
@ -72,15 +73,24 @@ publishing {
groupId "com.fr.third"
artifactId "fine-third"
version maven_version_build
ext.repo = 'snapshot'
from components.java
}
}
repositories {
maven {
def releasesRepoUrl = "http://mvn.finedevelop.com/repository/fanruan-release/"
def snapshotsRepoUrl = "http://mvn.finedevelop.com/repository/fanruan/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
name "release"
url "http://mvn.finedevelop.com/repository/fanruan-release/"
credentials {
username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD")
}
}
maven {
name "snapshot"
url "http://mvn.finedevelop.com/repository/fanruan/"
credentials {
username = findProperty("NEXUS_USERNAME")
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) {
delete classesDir
destinationDir=file(classesDir)
@ -117,5 +138,4 @@ task unpack(type:Copy) {
}
jar.dependsOn unpack
jar.dependsOn unpack
Loading…
Cancel
Save