-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
74 lines (68 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
buildscript {
repositories {
maven { url 'https://dl.google.com/dl/android/maven2/' }
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.5.4'
}
}
apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
maven { url 'https://dl.google.com/dl/android/maven2/' }
jcenter()
maven { url 'http://172.16.0.15:8081/nexus/content/repositories/releases/' }
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.git:jclasslib:4.3'
compile 'com.android.tools.build:gradle:3.0.1'
compile 'com.squareup:javapoet:1.8.0'
compile 'org.jooq:joor:0.9.6'
}
uploadArchives {
configuration = configurations.archives
repositories {
mavenDeployer {
snapshotRepository(url: MAVEN_SNAPSHOT_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}
repository(url: MAVEN_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}
pom.project {
version VERSION_NAME
artifactId ARTIFACT_ID
groupId GROUP_ID
packaging TYPE
description DESCRIPTION
}
}
}
}
/**
* 本地测试时使用
*/
install {
repositories.mavenInstaller {
pom.project {
version '9.9.999'
artifactId ARTIFACT_ID
groupId GROUP_ID
packaging TYPE
description DESCRIPTION
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
group BasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the main sources of this project.'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}