forked from wangpeiming110/JiaGuLeGu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (95 loc) · 2.62 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'com.zf.plugins.GitCommand'
apply plugin: 'com.jfrog.bintray'
def bintrayConfigFile = new File("D:\\Users\\Lenovo\\Desktop\\APP\\buildScript\\bintrayConfig.gradle")
if (bintrayConfigFile.exists()) {
apply from: bintrayConfigFile.absolutePath
}
dependencies {
compile gradleApi()
compile localGroovy()
}
def isSnapshot = false
version '1.0.2'
def _versionCode= 2
if (isSnapshot) {
version (version + "-SNAPSHOT")
}
group 'com.zf.plugins'
def gitUrl = "https://github.com/903600017/JiaGuLeGu.git"
def siteUrl = gitUrl
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
gitConfig {
versionCode _versionCode
versionName version
changedLogFilePath file("config/log.txt").absolutePath
workDirPath project.projectDir.absolutePath
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId 'JiaGuLeGu'
artifact sourcesJar {
classifier "sources"
}
pom {
name = "JiaGuLeGu"
description = "APK Reinforcement Plug-in"
url = siteUrl
licenses {
license {
name = "The Apache License, Version 2.0"
url = "https://raw.githubusercontent.com/903600017/JiaGuLeGu/master/LICENSE"
}
}
developers {
developer {
id = "zf"
name = "zf"
email = "[email protected]"
}
}
organization {
name = "zf"
url = "https://github.com/903600017"
}
}
}
}
repositories {
maven {
url = uri('E:\\mvn-repo\\plugins\\repo')
}
}
}
bintray {
user = BINTRAY_USER
key = BINTRAY_API_KEY
publications 'mavenJava'
pkg {
repo = 'maven'
name = 'JiaGuLeGu'
userOrg = 'zf'
licenses = ['Apache-2.0']
websiteUrl = siteUrl
vcsUrl = gitUrl
}
}
////设置maven deployer
//uploadArchives {
// repositories {
// mavenDeployer {
// //设置插件的GAV参数
// pom.groupId = 'com.zf.plugins'
// pom.artifactId = 'JiaGuLeGu'
// pom.version = version
// //文件发布到下面目录
// repository(url: uri('E:\\mvn-repo\\plugins\\repo'))
// }
// }
//}