Last active
September 20, 2016 07:21
-
-
Save hangox/00213937964ef39fafe8eca9e4e74496 to your computer and use it in GitHub Desktop.
一个发布到nexus 的脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.bmuschko.nexus' | |
//buidscript 中添加 classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1' | |
//version = '1.1' | |
//group = 'com.hangox' | |
//ext{ | |
// libName = 'RulerView' | |
// libDescripton = '刻度尺' | |
//} | |
modifyPom { | |
project { | |
name ext.libName; | |
description ext.libDescripton | |
url '' | |
inceptionYear '2012' | |
licenses { | |
license { | |
name 'The Apache Software License, Version 2.0' | |
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | |
distribution 'repo' | |
} | |
} | |
developers { | |
developer { | |
id 'hangox' | |
name 'HangoX' | |
email '[email protected]' | |
} | |
} | |
} | |
} | |
extraArchive { | |
sources = true | |
tests = true | |
javadoc = true | |
} | |
nexus { | |
sign = false | |
repositoryUrl = 'http://nexus.hangox.com/nexus/content/repositories/releases/' | |
snapshotRepositoryUrl = 'http://nexus.hangox.com/nexus/content/repositories/snapshots/' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment