|
|
|
@ -44,6 +44,7 @@ def formattedDate = date.format('yyyy.MM.dd')
|
|
|
|
|
|
|
|
|
|
def srcDir="." |
|
|
|
|
def maven_version="${version}.${formattedDate}" |
|
|
|
|
def maven_version_build ="${version}-SNAPSHOT" |
|
|
|
|
def jar_version = version |
|
|
|
|
|
|
|
|
|
configurations { |
|
|
|
@ -66,11 +67,20 @@ publishing {
|
|
|
|
|
version maven_version |
|
|
|
|
from components.java |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
third_build(MavenPublication) { |
|
|
|
|
groupId "com.fr.third" |
|
|
|
|
artifactId "fine-third" |
|
|
|
|
version maven_version_build |
|
|
|
|
from components.java |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
repositories { |
|
|
|
|
maven { |
|
|
|
|
|
|
|
|
|
url "http://mvn.finedevelop.com/repository/fanruan-release/" |
|
|
|
|
def releasesRepoUrl = "http://mvn.finedevelop.com/repository/fanruan-release/" |
|
|
|
|
def snapshotsRepoUrl = "http://mvn.finedevelop.com/repository/fanruan/" |
|
|
|
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
|
|
|
|
credentials { |
|
|
|
|
username = findProperty("NEXUS_USERNAME") |
|
|
|
|
password = findProperty("NEXUS_PASSWORD") |
|
|
|
|