This repository has been archived by the owner on Sep 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
87 lines (67 loc) · 2.37 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
buildscript {
ext {
eclipse_project_prefix = 'nntool'
}
repositories {
google()
mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'http://repo.spring.io/milestone' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: spring_boot_version
classpath 'com.bmuschko:gradle-clover-plugin:2.2.4'
// Unfortunatly, just adding a dependency to jib-gradle-plugin breaks the Android build.
// Therefore, we can only include it if we don't build Android modules.
if (gradle.ext.includeJibGradlePlugin) {
classpath 'gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:2.1.0'
}
}
}
plugins {
id 'net.ltgt.apt' version '0.21'
id 'net.ltgt.apt-eclipse' version '0.21'
id 'net.ltgt.apt-idea' version '0.21'
id 'com.adarshr.test-logger' version '1.6.0' // https://github.com/radarsh/gradle-test-logger-plugin
}
apply from: "${project.rootDir}/gradle/git_info.gradle"
if (System.getProperty('include-code-coverage') != null) {
apply from: "${project.rootDir}/gradle/clover_aggregate.gradle"
}
// define a top-level clean task to delete top-level build directory and clover database
task clean {
delete "${project.rootDir}/build"
delete "${project.rootDir}/.clover"
}
allprojects { p ->
group = 'at.alladin.nettest'
version = '1.0'
repositories {
google()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://nexus.pentaho.org/content/groups/omni/' }
maven { url 'http://maven.restlet.com' }
}
apply plugin: 'eclipse'
eclipse.project.name = "${eclipse_project_prefix}-${p.name}"
apply plugin: 'net.ltgt.apt'
apply plugin: 'net.ltgt.apt-eclipse'
apply plugin: 'net.ltgt.apt-idea'
apply plugin: 'com.adarshr.test-logger'
}
subprojects { p ->
if (p.name.toLowerCase().contains('android')) {
return
}
if (System.getProperty('include-code-coverage') != null) {
apply from: "${project.rootDir}/gradle/clover.gradle"
}
// make root project clean task depend on (= execute) subproject clean tasks
rootProject.clean.dependsOn tasks.matching { it.name == "clean" }
clean.doLast {
delete ".clover"
}
}