Skip to content

Instantly share code, notes, and snippets.

@beilly beilly/gradle.properties
Last active Jun 20, 2017

Embed
What would you like to do?
gradle 私服打包上传aar包
## 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=*********
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
You can’t perform that action at this time.