@@ -13,113 +13,29 @@ buildscript {
1313import org.ajoberstar.gradle.git.tasks.*
1414
1515allprojects {
16- apply plugin : ' java'
1716 apply plugin : ' eclipse'
1817 apply plugin : ' idea'
19- apply plugin : ' project-report'
20- apply plugin : ' checkstyle'
21- apply plugin : ' pmd'
22- apply plugin : ' findbugs'
23-
24- // Computes code coverage of (unit) tests
25- apply plugin : ' jacoco'
26-
27- dependencies {
28- checkstyle(' com.puppycrawl.tools:checkstyle:6.5' )
29- pmd(' net.sourceforge.pmd:pmd-core:5.3.3' )
30- pmd(' net.sourceforge.pmd:pmd-java:5.3.3' )
31- // the FindBugs version is set in the configuration
32- }
3318
3419 version = ' 1.4.0'
3520 ext {
3621 appName = ' DestinationSol'
3722 gdxVersion = ' 1.7.0'
3823 roboVMVersion = ' 1.8.0'
3924 }
25+ }
4026
41- repositories {
42- // Good ole Maven central
43- mavenCentral()
44-
45- // Repos for LibGDX
46- maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
47- maven { url " https://oss.sonatype.org/content/repositories/releases/" }
48-
49- // Terasology Artifactory for any shared libs
50- maven { url " http://artifactory.terasology.org/artifactory/virtual-repo-live" }
51- }
52- test {
53- // ignoreFailures: Specifies whether the build should break when the verifications performed by this task fail.
54- ignoreFailures = true
55-
56- // showStandardStreams: makes the standard streams (err and out) visible at console when running tests
57- testLogging. showStandardStreams = true
58-
59- // Arguments to include while running tests
60- jvmArgs ' -Xms512m' , ' -Xmx1024m'
61-
62- jacoco {
63- append = false
64- }
65- }
66-
67- jacoco {
68- toolVersion = " 0.7.4.201502262128"
69- }
70-
71- jacocoTestReport {
72- dependsOn test // Despite doc saying this should be automatic we need to explicitly add it anyway :-(
73- reports {
74- // We only use the .exec report for display in Jenkins and such. More could be enabled if desired.
75- xml. enabled false
76- csv. enabled false
77- html. enabled false
78- }
79- }
80-
81- // The config files here work in both a multi-project workspace (IDEs, running from source) and for solo module builds
82- // Solo module builds in Jenkins get a copy of the config dir from the engine harness so it still lives at root/config
83- // TODO: Maybe update other projects like modules to pull the zipped dependency so fewer quirks are needed in Jenkins
84- checkstyle {
85- ignoreFailures = true
86- configFile = new File (rootDir, ' config/metrics/checkstyle/checkstyle.xml' )
87- configProperties. samedir = checkstyle. configFile. parentFile
88- }
89-
90- pmd {
91- ignoreFailures = true
92- ruleSetFiles = files(" $rootDir /config/metrics/pmd/pmd.xml" )
93- // By default, gradle uses both ruleset file AND the rulesets. Override the ruleSets to use only those from the file
94- ruleSets = []
95- }
96-
97- findbugs {
98- ignoreFailures = true
99- toolVersion = ' 3.0.1'
100- excludeFilter = new File (rootDir, " config/metrics/findbugs/findbugs-exclude.xml" )
101- }
27+ repositories {
28+ // Good ole Maven central
29+ mavenCentral()
10230
103- // TODO: Temporary until javadoc has been fixed for Java 8 everywhere
104- javadoc {
105- failOnError = false
106- }
31+ // Repos for LibGDX
32+ maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
33+ maven { url " https://oss.sonatype.org/content/repositories/releases/" }
10734
108- tasks. withType(Checkstyle ) {
109- group = ' Reporting'
110- }
111-
112- tasks. withType(Pmd ) {
113- group = ' Reporting'
114- }
115- tasks. withType(FindBugs ) {
116- group = ' Reporting'
117- reports {
118- xml. enabled = false
119- html. enabled = true
120- }
121- }
35+ // Terasology Artifactory for any shared libs
36+ maven { url " http://artifactory.terasology.org/artifactory/virtual-repo-live" }
12237}
38+
12339configurations {
12440 codeMetrics
12541}
@@ -182,12 +98,6 @@ cleanIdea.doLast {
18298 println " Cleaned root - don't forget to re-extract code metrics config! 'gradlew extractConfig' will do so, or 'gradlew idea' (or eclipse)"
18399}
184100
185- // Make sure our config file for code analytics get extracted (vulnerability: non-IDE execution of single analytic)
186- ideaModule. dependsOn rootProject. extractConfig
187- tasks. eclipse. dependsOn rootProject. extractConfig
188- check. dependsOn rootProject. extractConfig
189-
190-
191101task(fetchAndroid, type : GitClone ) {
192102 description = ' Git clones the Android facade source from GitHub'
193103
0 commit comments