-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
115 lines (97 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
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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'checkstyle'
apply plugin: 'application'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "org.manifold"
// name = "manifold-backend-digital"
version = '0.5.0-SNAPSHOT'
mainClassName = "org.manifold.compiler.back.digital.DigitalBackend"
jar {
manifest {
attributes 'Implementation-Title': 'Manifold Digital Backend', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
jcenter()
maven {
name 'Manifold release repository'
url 'http://manifold-lang.org/releases'
}
}
run {
standardInput = System.in
}
dependencies {
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.guava:guava:17.0'
testCompile 'junit:junit:4.11'
compile 'log4j:log4j:1.2.16'
compile group: 'commons-cli', name: 'commons-cli', version: '1.2'
compile 'org.manifold:manifold-core:0.9.+'
}
buildscript {
repositories {
mavenCentral()
maven {
name 'JFrog OSS snapshot repo'
url 'https://oss.jfrog.org/oss-snapshot-local/'
}
jcenter()
}
dependencies {
classpath 'org.ajoberstar:gradle-jacoco:0.2.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
}
}
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.7.1.201405082137"
reportsDir = file("$buildDir/reports/jacoco")
}
test {
copy {
from 'src/test/java/org/manifold/compiler/back/data'
into "$buildDir/classes/test/org/manifold/compiler/back/data"
}
testLogging.showStandardStreams = true
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpFile = file("$buildDir/jacoco/classpathdumps")
}
}
jacocoTestReport {
reports {
xml.enabled = true
csv.enabled = false
html.destination = "${buildDir}/reports/jacoco"
}
}
check.dependsOn(jacocoTestReport)
checkstyle {
configFile = new File(rootDir, "checkstyle.xml")
ignoreFailures = false
showViolations = true
toolVersion = "5.9"
}
task jenkinsTest {
inputs.files test.outputs.files
doLast {
def timestamp = System.currentTimeMillis()
testResultsDir.eachFile { it.lastModified = timestamp }
}
}
build.dependsOn(jenkinsTest)
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://localhost/var/www/releases")
}
}
}