Skip to content

Commit

Permalink
增加用户构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
weijunyi committed Jun 19, 2019
1 parent 91e7fca commit 86f54c1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions user_build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apply plugin: 'java'
apply plugin: 'maven'

repositories {
mavenCentral()
}

dependencies {
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20180130'
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.12'
}

sourceCompatibility = 1.6
group = "com.github.tencentyun"
archivesBaseName = "tls-sig-api-v2"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocJar, sourcesJar
}

0 comments on commit 86f54c1

Please sign in to comment.