forked from gradle/gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (70 loc) · 2.28 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
<% if (binding.hasVariable("manyPlugins")) { (1..25).findAll { it % 3 == 0 }.each { %>
apply plugin: "org.gradle.build.gen${it}"
<% } %>
<% } %>
<% if (binding.hasVariable("manyScripts")) { (1..30).findAll { it % 5 == 0 }.each { %>
apply from: "\${rootProject.projectDir.absolutePath}/gradle/script-plugin${it}.gradle"
<% } %>
<% } %>
repositories {
<% if (repository) { %>
maven {
url rootProject.file("${repository.rootDir.name}").toURI().toURL()
}
<% } %>
mavenCentral()
}
<% if (binding.hasVariable("projectDependencies")) { %>
configurations {
implementation.extendsFrom projectsConfiguration
}
<% } %>
<% if (binding.hasVariable("springDmPluginVersion")) {%>
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:1.3.5.RELEASE'
mavenBom 'io.spring.platform:platform-bom:2.0.5.RELEASE'
}
}
<% } %>
if(Boolean.getBoolean("slowTasks")) {
allprojects {
tasks.withType(JavaCompile) {
doLast {
Thread.sleep(100)
}
}
}
}
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:2.4.10"
testImplementation 'junit:junit:4.13'
runtimeOnly 'com.googlecode:reflectasm:1.01'
<% if (dependencies) { dependencies.each { %>
implementation "${it.shortNotation()}" <% } %>
<% } %>
<% if (binding.hasVariable("projectDependencies") && subprojectNumber > 1) { (1..<subprojectNumber).each { %>
projectsConfiguration project(":project${it}") <% } %>
<% } %>
}
test {
jvmArgs '-Xmx1g', '-XX:+HeapDumpOnOutOfMemoryError'
<% if (binding.hasVariable("fullTestLogging")) { %>
testLogging {
if (Boolean.getBoolean("reducedOutput")) {
events "failed"
} else {
events "started", "skipped", "failed", "passed", "standard_out", "standard_error"
}
}
<% } %>
maxParallelForks 2
}