forked from gradle/gradle
/
build.gradle
65 lines (57 loc) · 1.58 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
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
<% if (repository) { %>
maven {
url rootProject.file("${repository.rootDir.name}").toURI().toURL()
}
<% } %>
mavenCentral()
}
dependencies {
implementation 'commons-lang:commons-lang:2.5'
implementation "commons-httpclient:commons-httpclient:3.0"
implementation "commons-codec:commons-codec:1.2"
implementation "org.slf4j:jcl-over-slf4j:1.7.10"
implementation "org.codehaus:groovy:groovy-all:2.4.15"
implementation "commons-codec:commons-codec:1.2"
testImplementation 'junit:junit:4.13'
testImplementation 'org.testng:testng:6.4'
runtimeOnly 'com.googlecode:reflectasm:1.01'
<% if (dependencies) { dependencies.each { %>
implementation "${it.shortNotation()}" <% } %>
<% } %>
}
test {
if (!JavaVersion.current().java8Compatible) {
jvmArgs '-XX:MaxPermSize=512m'
}
jvmArgs '-XX:+HeapDumpOnOutOfMemoryError'
}
<% if (groovyProject) { %>
apply plugin: 'groovy'
dependencies {
implementation 'org.codehaus:groovy:groovy-all:2.4.15'
}
<% } %>
<% if (scalaProject) { %>
apply plugin: 'scala'
dependencies {
implementation 'org.scala-lang:scala-library:2.9.2'
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.with {
useAnt = false
fork = true
if (!JavaVersion.current().java8Compatible) {
forkOptions.jvmArgs = ["-XX:MaxPermSize=512m"]
}
}
}
<% } %>
task dependencyReport(type: DependencyReportTask) {
outputFile = new File(buildDir, "dependencies.txt")
}
}