|
|
|
@ -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 { |
|
|
|
|
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 { |
|
|
|
|
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) |
|
|
|
@ -118,4 +139,3 @@ task unpack(type:Copy) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
jar.dependsOn unpack |
|
|
|
|
|
|
|
|
|