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

Last change on this file since 34529 was 34419, checked in by renerr18, 6 years ago

Last minute changes prior to transfer of plugin to Microsoft repository.

File size: 3.2 KB
RevLine 
[34317]1plugins {
2 id "org.sonarqube" version "2.6.2"
3 id "org.kordamp.markdown.convert" version "1.1.0"
[34329]4 id 'org.openstreetmap.josm' version "0.4.4"
[34317]5 id "com.github.ben-manes.versions" version "0.17.0"
[34329]6 id 'com.github.spotbugs' version '1.6.1'
[34324]7 id "net.ltgt.errorprone" version "0.0.14"
[34317]8
9 id 'eclipse'
10 id 'jacoco'
11 id 'java'
12 id 'pmd'
13}
14
15apply from: 'gradle/tool-config.gradle'
[34419]16// TODO: repair Mapillary markdown task
17// error with subdir build/markdown
18//apply from: 'gradle/markdown.gradle'
[34317]19
20sourceCompatibility = '1.8'
21
22def versionProcess = new ProcessBuilder("git", "describe", "--always", "--dirty").start()
23versionProcess.waitFor()
24if (versionProcess.exitValue() != 0) {
25 logger.error("Could not determine the current version of this JOSM plugin!")
26 version = "‹unknown›"
27} else {
28 version = versionProcess.in.text.trim()
29}
30archivesBaseName = 'MicrosoftStreetside'
31
32repositories {
33 jcenter()
34 mavenCentral()
35}
36
37dependencies {
38 compile 'com.fasterxml.jackson.core:jackson-core:2.2.4'
39 compile 'com.fasterxml.jackson.core:jackson-databind:2.2.4'
40 compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.4'
41 compile 'us.monoid.web:resty:0.3.2'
[34358]42 compile 'log4j:log4j:1.2.17'
[34317]43 testImplementation ('org.openstreetmap.josm:josm-unittest'){changing=true}
[34329]44 testImplementation 'com.github.tomakehurst:wiremock:2.17.0'
[34317]45 testImplementation 'junit:junit:4.12'
46}
47
48sourceSets {
49 main {
50 java {
51 srcDirs = ['src']
52 }
53 resources {
54 srcDirs = ["$projectDir"]
55 include 'data/**'
56 include 'images/**'
57 include 'LICENSE'
58 include 'LICENSE_*'
59 }
60 }
61 test {
62 java {
63 srcDirs = ['test/unit']
64 }
65 resources{
66 srcDirs = ['test/data']
67 }
68 }
69}
70
71josm {
72 debugPort = 7051
73 manifest {
[34399]74 //oldVersionDownloadLink 10824, 'v1.5.3', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.3/Mapillary.jar')
[34317]75 }
76 i18n {
[34329]77 pathTransformer = getGithubPathTransformer('spatialdev/MicrosoftStreetside')
[34317]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}
Note: See TracBrowser for help on using the repository browser.