在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):chrisbanes/gradle-mvn-push开源软件地址(OpenSource Url):https://github.com/chrisbanes/gradle-mvn-push开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):gradle-mvn-pushSee this blog post for more context on this 'library': http://chris.banes.me/2013/08/27/pushing-aars-to-maven-central/. Usage1. Have a working Gradle buildThis is upto you. 2. Update your home gradle.propertiesThis will include the username and password to upload to the Maven server and so that they are kept local on your machine. The location defaults to It may also include your signing key id, password, and secret key ring file (for signed uploads). Signing is only necessary if you're putting release builds of your project on maven central. NEXUS_USERNAME=chrisbanes
NEXUS_PASSWORD=g00dtry
signing.keyId=ABCDEF12
signing.password=n1c3try
signing.secretKeyRingFile=~/.gnupg/secring.gpg 3. Create project root gradle.propertiesYou may already have this file, in which case just edit the original. This file should contain the POM values which are common to all of your sub-project (if you have any). For instance, here's ActionBar-PullToRefresh's: VERSION_NAME=0.9.2-SNAPSHOT
VERSION_CODE=92
GROUP=com.github.chrisbanes.actionbarpulltorefresh
POM_DESCRIPTION=A modern implementation of the pull-to-refresh for Android
POM_URL=https://github.com/chrisbanes/ActionBar-PullToRefresh
POM_SCM_URL=https://github.com/chrisbanes/ActionBar-PullToRefresh
POM_SCM_CONNECTION=scm:[email protected]:chrisbanes/ActionBar-PullToRefresh.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:chrisbanes/ActionBar-PullToRefresh.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=chrisbanes
POM_DEVELOPER_NAME=Chris Banes The 4. Create gradle.properties in each sub-projectThe values in this file are specific to the sub-project (and override those in the root POM_NAME=ActionBar-PullToRefresh Library
POM_ARTIFACT_ID=library
POM_PACKAGING=aar 5. Call the script from each sub-modules build.gradleAdd the following at the end of each apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' 6. Build and PushYou can now build and push: $ gradle clean build uploadArchives Other PropertiesThere are other properties which can be set:
License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论