source: osm/applications/editors/josm/plugins/MicrosoftStreetside/build.gradle@ 34321

Last change on this file since 34321 was 34321, checked in by renerr18, 7 years ago

Cleanup and removal of superfluous files.

File size: 3.0 KB
Line 
1plugins {
2 id "org.sonarqube" version "2.6.2"
3 id "org.kordamp.markdown.convert" version "1.1.0"
4 id 'org.openstreetmap.josm' version "0.4.0"
5 id "com.github.ben-manes.versions" version "0.17.0"
6 id 'com.github.spotbugs' version '1.6.0'
7 id "net.ltgt.errorprone" version "0.0.13"
8
9 id 'eclipse'
10 id 'idea'
11 id 'jacoco'
12 id 'java'
13 id 'pmd'
14}
15
16apply from: 'gradle/tool-config.gradle'
17//apply from: 'gradle/markdown.gradle'
18
19sourceCompatibility = '1.8'
20
21def versionProcess = new ProcessBuilder("git", "describe", "--always", "--dirty").start()
22versionProcess.waitFor()
23if (versionProcess.exitValue() != 0) {
24 logger.error("Could not determine the current version of this JOSM plugin!")
25 version = "‹unknown›"
26} else {
27 version = versionProcess.in.text.trim()
28}
29archivesBaseName = 'MicrosoftStreetside'
30
31repositories {
32 jcenter()
33 mavenCentral()
34}
35
36dependencies {
37 compile 'com.fasterxml.jackson.core:jackson-core:2.2.4'
38 compile 'com.fasterxml.jackson.core:jackson-databind:2.2.4'
39 compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.4'
40 compile 'us.monoid.web:resty:0.3.2'
41 compile 'us.monoid.web:resty:0.3.2'
42 testImplementation ('org.openstreetmap.josm:josm-unittest'){changing=true}
43 testImplementation 'junit:junit:4.12'
44}
45
46sourceSets {
47 main {
48 java {
49 srcDirs = ['src']
50 }
51 po {
52 srcDirs = ['poSrc']
53 }
54 resources {
55 srcDirs = ["$projectDir"]
56 include 'data/**'
57 include 'images/**'
58 include 'LICENSE'
59 include 'LICENSE_*'
60 }
61 }
62 test {
63 java {
64 srcDirs = ['test/unit']
65 }
66 resources{
67 srcDirs = ['test/data']
68 }
69 }
70}
71
72josm {
73 debugPort = 7051
74 manifest {
75 }
76 i18n {
77 //pathTransformer = getGithubPathTransformer('JOSM/Mapillary')
78 }
79}
80
81eclipse {
82 project {
83 name = 'MicrosoftStreetside'
84 comment = josm.manifest.description
85 natures 'org.sonarlint.eclipse.core.sonarlintNature', 'ch.acanda.eclipse.pmd.builder.PMDNature', 'org.eclipse.buildship.core.gradleprojectnature'
86 buildCommand 'org.sonarlint.eclipse.core.sonarlintBuilder'
87 buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder'
88 buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder'
89 }
90}
91eclipseClasspath.dependsOn cleanEclipseClasspath
92eclipseProject.dependsOn cleanEclipseProject
93tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject']
94
95tasks.withType(JavaCompile) {
96 // Character encoding of Java files
97 options.encoding = 'UTF-8'
98}
99tasks.withType(Javadoc) {
100 failOnError false
101}
102tasks.withType(com.github.spotbugs.SpotBugsTask) {
103 reports {
104 xml.enabled = false
105 html.enabled = true
106 }
107}
108
109import org.gradle.api.tasks.testing.logging.TestLogEvent
110
111test {
112 testLogging {
113 exceptionFormat "full"
114 events TestLogEvent.FAILED, TestLogEvent.SKIPPED
115 showCauses true
116
117 info {
118 events TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR
119 showStandardStreams = true
120 }
121 }
122}
123
Note: See TracBrowser for help on using the repository browser.