-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
81 lines (69 loc) · 2.3 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
plugins {
id "com.avast.gradle.docker-compose" version "0.9.1"
id("maven-publish")
}
apply plugin: 'groovy'
group 'com.codebrig'
version '0.4.6'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/codebrig/arthur")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("gpr.user")
password = project.findProperty("gpr.key") ?: System.getenv("gpr.key")
}
}
}
publications {
gpr(MavenPublication) {
groupId group
artifactId jar.baseName.toLowerCase()
from(components.java)
}
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.26'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
implementation 'org.codehaus.groovy:groovy-all:3.0.7'
implementation files("lib/bblfsh-client-1.11.1.jar")
implementation 'org.bblfsh:bblfsh-client:1.11.0'
implementation group: 'org.kohsuke', name: 'github-api', version: '1.101'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.1.3.201810200350-r'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.8'
implementation group: 'com.google.guava', name: 'guava', version: '30.0-jre'
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/arthur_build.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
test {
dependsOn "composeUp"
finalizedBy "composeDown"
testLogging {
events "passed", "skipped", "failed"
setExceptionFormat("full")
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
dockerCompose {
useComposeFiles = ['./docker-compose.yml']
dockerComposeWorkingDirectory = './docker/'
captureContainersOutput = true
}