Last active
June 20, 2017 09:43
-
-
Save beilly/eb9215dd77ab69d30c56e397d86a5f63 to your computer and use it in GitHub Desktop.
gradle 私服打包上传aar包
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
| ## Project-wide Gradle settings. | |
| # | |
| # For more details on how to configure your build environment visit | |
| # http://www.gradle.org/docs/current/userguide/build_environment.html | |
| # | |
| # Specifies the JVM arguments used for the daemon process. | |
| # The setting is particularly useful for tweaking memory settings. | |
| # Default value: -Xmx1024m -XX:MaxPermSize=256m | |
| org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
| # | |
| # When configured, Gradle will run in incubating parallel mode. | |
| # This option should only be used with decoupled projects. More details, visit | |
| # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | |
| org.gradle.parallel=true | |
| #Thu May 11 16:05:30 CST 2017 | |
| Android.useDeprecatedNdk=true | |
| systemProp.http.proxyHost=127.0.0.1 | |
| #就是让你让你编译时使用守护进程。 | |
| org.gradle.daemon=true | |
| market=config/markets.txt | |
| systemProp.http.proxyPort=10800 | |
| MAVEN_REPO_RELEASE_URL=http://10.143.100.240:8081/nexus/content/repositories/releases | |
| #登录nexus ossde的用户名 | |
| NEXUS_USERNAME=admin | |
| #登录nexus oss的密码 | |
| NEXUS_PASSWORD=********* |
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: 'maven' | |
| tasks.withType(JavaCompile) { | |
| options.encoding = "UTF-8" | |
| } | |
| task androidSourcesJar(type: Jar) { | |
| classifier = 'sources' | |
| from android.sourceSets.main.java.source | |
| } | |
| artifacts { | |
| archives androidSourcesJar | |
| //archives androidJavadocsJar | |
| } | |
| uploadArchives { | |
| repositories { | |
| mavenDeployer { | |
| repository(url: MAVEN_REPO_RELEASE_URL) { | |
| authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) | |
| println('userName: ' + NEXUS_USERNAME + ', password:' + NEXUS_PASSWORD) | |
| } | |
| pom.project { | |
| name "liveness" | |
| version "1.0.0" | |
| artifactId 'liveness' | |
| groupId 'com.vcredit' | |
| packaging 'aar' | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment