2019-02-17 01:27:05 +00:00
|
|
|
plugins {
|
|
|
|
id 'idea'
|
|
|
|
}
|
2017-12-09 01:43:09 +00:00
|
|
|
|
2017-11-27 01:34:15 +00:00
|
|
|
// Exclude apps/ dir itself, but include its subdirs
|
2017-12-07 03:50:25 +00:00
|
|
|
def javaProjects = subprojects - project(':apps')
|
|
|
|
|
|
|
|
configure(javaProjects) {
|
2014-06-24 05:18:16 +00:00
|
|
|
apply plugin: 'java'
|
2017-12-07 03:50:25 +00:00
|
|
|
apply plugin: 'jacoco'
|
2017-11-02 19:04:40 +00:00
|
|
|
apply plugin: 'eclipse'
|
2017-11-27 01:27:55 +00:00
|
|
|
apply plugin: 'idea'
|
2014-06-24 05:18:16 +00:00
|
|
|
|
2014-06-25 02:50:24 +00:00
|
|
|
repositories {
|
2017-10-31 06:13:12 +00:00
|
|
|
jcenter()
|
2014-06-25 02:50:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile 'junit:junit:4.+'
|
2017-10-31 06:13:24 +00:00
|
|
|
testCompile 'org.hamcrest:hamcrest-library:1.3'
|
2017-11-02 20:15:48 +00:00
|
|
|
testCompile 'org.mockito:mockito-core:2.11.0'
|
2014-06-25 02:50:24 +00:00
|
|
|
}
|
|
|
|
|
2014-06-24 05:18:16 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
2017-10-31 04:32:08 +00:00
|
|
|
attributes 'Implementation-Version': '0.9.31-7'
|
2014-06-24 05:18:16 +00:00
|
|
|
}
|
|
|
|
}
|
2017-10-31 08:35:04 +00:00
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
2017-11-03 01:05:37 +00:00
|
|
|
// Set i2pBootClasspath=/path/to/rt.jar:/path/to/jce.jar in ~/.gradle/gradle.properties if needed
|
|
|
|
if (i2pBootClasspath) {
|
|
|
|
tasks.withType(AbstractCompile, { AbstractCompile ac ->
|
|
|
|
ac.options.bootstrapClasspath = files(i2pBootClasspath)
|
|
|
|
})
|
|
|
|
}
|
2014-06-24 05:18:16 +00:00
|
|
|
}
|
2015-12-29 21:18:53 +00:00
|
|
|
|
2017-12-07 03:50:25 +00:00
|
|
|
task codeCoverageReport(type: JacocoReport) {
|
|
|
|
dependsOn(javaProjects.test)
|
|
|
|
|
|
|
|
jacocoClasspath = project(':core').configurations.jacocoAnt
|
|
|
|
additionalSourceDirs = files(javaProjects.sourceSets.main.allSource.srcDirs)
|
|
|
|
sourceDirectories = files(javaProjects.sourceSets.main.allSource.srcDirs)
|
|
|
|
classDirectories = files(javaProjects.sourceSets.main.output)
|
|
|
|
executionData = files(javaProjects.jacocoTestReport.executionData)
|
|
|
|
|
|
|
|
doFirst {
|
|
|
|
executionData = files(executionData.findAll { it.exists() })
|
|
|
|
}
|
|
|
|
|
|
|
|
reports {
|
|
|
|
xml.enabled true
|
2019-02-17 01:16:20 +00:00
|
|
|
xml.destination file("${buildDir}/reports/jacoco/report.xml")
|
2017-12-07 03:50:25 +00:00
|
|
|
html.enabled true
|
2019-02-17 01:16:20 +00:00
|
|
|
html.destination file("${buildDir}/reports/jacoco/html")
|
2017-12-07 03:50:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-29 21:18:53 +00:00
|
|
|
//apply from: file('gradle/update.gradle')
|