-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (78 loc) · 2.36 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
plugins {
id "java-library"
id "maven-publish"
}
ext {
buildNumber = System.getenv("BUILD_NUMBER") ?: System.getenv("TRAVIS_BUILD_NUMBER")
url = 'https://github.com/tim-group/make-it-easy-templates'
}
group = "com.timgroup"
if (buildNumber) version = "1.0.$buildNumber"
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
api "com.natpryce:make-it-easy:4.0.1"
testImplementation "junit:junit:4.12"
testImplementation "org.hamcrest:hamcrest-library:1.3"
}
tasks.withType(JavaCompile).all {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
options.encoding = "UTF-8"
options.incremental = true
options.deprecation = true
options.compilerArgs << "-parameters"
}
tasks.withType(Jar).all {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'TIM Group Ltd',
'Implementation-Vendor-Id': project.group,
'Implementation-URL': project.url
)
}
}
publishing {
repositories {
if (project.hasProperty("repoUrl")) {
maven {
url = "${project.repoUrl}/repositories/yd-release-candidates"
credentials {
username = project.repoUsername
password = project.repoPassword
}
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId "make-it-easy-templates"
from components.java
pom.withXml {
asNode().children().last() + {
resolveStrategy = DELEGATE_FIRST
name project.name
description project.description
url project.url
scm {
url "scm:${project.url}"
connection 'scm:git:https://github.com/tim-group/make-it-easy-templates.git'
developerConnection 'scm:git:git://github.com/tim-group/make-it-easy-templates.git'
}
developers {
developer {
email 'opensource@timgroup.com'
}
}
}
}
}
}
}