-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (57 loc) · 1.84 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
plugins {
id "com.liferay.source.formatter" version "5.1.29" apply false
}
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
jar {
manifest {
attributes(
'Built-By' : System.properties['user.name'],
'Build-Timestamp' : new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
'Implementation-Title' : "Reference Checher: ${baseName} jar",
'Implementation-Version': "${project.rootProject.version}",
'Implementation-Vendor' : "Liferay"
)
}
}
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
repositories {
mavenCentral()
maven {
url "https://www.oracle.com/content/secure/maven/content"
name "maven.oracle.com"
credentials {
username mavenOracleUsername
password mavenOraclePassword
}
}
}
buildDir = new File(rootProject.projectDir, "build/" + project.name)
task copyJars(type: Copy) {
from subprojects.collect { it.tasks.withType(Jar) }
into new File(rootProject.projectDir, "lib")
}
task copyDist(type: Copy) {
dependsOn ':reference-checker-cmd:distZip'
from new File(rootProject.projectDir, "build/reference-checker-cmd/distributions")
into new File(rootProject.projectDir, "dist")
}
task deploy {
group 'Distribution'
description 'Create all distributable files (dist and lib folders)'
dependsOn 'copyJars'
dependsOn 'copyDist'
}
subprojects {
apply plugin: 'com.liferay.source.formatter'
check {
dependsOn checkSourceFormatting
}
}
version = referenceCheckerVersion
}