daniel 6 years ago
parent
commit
d451889be6
  1. 12
      build.third_step0.gradle

12
build.third_step0.gradle

@ -44,6 +44,7 @@ def formattedDate = date.format('yyyy.MM.dd')
def srcDir="." def srcDir="."
def maven_version="${version}.${formattedDate}" def maven_version="${version}.${formattedDate}"
def maven_version_build ="${version}-SNAPSHOT"
def jar_version = version def jar_version = version
configurations { configurations {
@ -66,11 +67,20 @@ publishing {
version maven_version version maven_version
from components.java from components.java
} }
third_build(MavenPublication) {
groupId "com.fr.third"
artifactId "fine-third"
version maven_version_build
from components.java
}
} }
repositories { repositories {
maven { 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 { credentials {
username = findProperty("NEXUS_USERNAME") username = findProperty("NEXUS_USERNAME")
password = findProperty("NEXUS_PASSWORD") password = findProperty("NEXUS_PASSWORD")

Loading…
Cancel
Save