-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
57 lines (48 loc) · 1.28 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
apply plugin: DependenciesPlugin
subprojects {
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath gradlePlugins.gradleGit
}
}
group = property("GROUP")
version = property("VERSION_NAME")
afterEvaluate { project ->
configurePomDetails(project)
}
repositories {
mavenCentral()
}
project.plugins.withType(JavaBasePlugin) {
project.with {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
}
}
void configurePomDetails(Project project) {
project.publishing {
publications.withType(MavenPublication) {
pom {
url = findProperty("POM_URL")
scm {
url = findProperty("POM_SCM_URL")
connection = findProperty("POM_SCM_CONNECTION")
}
licenses {
license {
name = findProperty("POM_LICENCE_NAME")
url = findProperty("POM_LICENCE_URL")
}
}
}
}
}
}
wrapper {
gradleVersion = '5.6.3'
distributionType = Wrapper.DistributionType.ALL
}