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

Last change on this file since 34384 was 34358, checked in by renerr18, 6 years ago

Drastic 360 degree viewer enhancements with default "no image selected" scene for cubemap box.

File size: 4.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.4"
5 id "com.github.ben-manes.versions" version "0.17.0"
6 id 'com.github.spotbugs' version '1.6.1'
7 id "net.ltgt.errorprone" version "0.0.14"
8
9 id 'eclipse'
10 id 'jacoco'
11 id 'java'
12 id 'pmd'
13}
14
15apply from: 'gradle/tool-config.gradle'
16//apply from: 'gradle/markdown.gradle'
17
18sourceCompatibility = '1.8'
19
20def versionProcess = new ProcessBuilder("git", "describe", "--always", "--dirty").start()
21versionProcess.waitFor()
22if (versionProcess.exitValue() != 0) {
23 logger.error("Could not determine the current version of this JOSM plugin!")
24 version = "‹unknown›"
25} else {
26 version = versionProcess.in.text.trim()
27}
28archivesBaseName = 'MicrosoftStreetside'
29
30repositories {
31 jcenter()
32 mavenCentral()
33}
34
35dependencies {
36 compile 'com.fasterxml.jackson.core:jackson-core:2.2.4'
37 compile 'com.fasterxml.jackson.core:jackson-databind:2.2.4'
38 compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.4'
39 compile 'us.monoid.web:resty:0.3.2'
40 compile 'log4j:log4j:1.2.17'
41 testImplementation ('org.openstreetmap.josm:josm-unittest'){changing=true}
42 testImplementation 'com.github.tomakehurst:wiremock:2.17.0'
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 // See https://floscher.github.io/gradle-josm-plugin/kdoc/current/gradle-josm-plugin/org.openstreetmap.josm.gradle.plugin.config/-josm-manifest/old-version-download-link.html
76 //oldVersionDownloadLink 13643, 'v1.5.14', new URL("https://github.com/JOSM/Mapillary/releases/download/v1.5.14/Mapillary.jar")
77 //oldVersionDownloadLink 13558, 'v1.5.12+pre13643', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.12%2Bpre13643/Mapillary.jar')
78 //oldVersionDownloadLink 12987, 'v1.5.10', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.10/Mapillary.jar')
79 //oldVersionDownloadLink 12675, 'v1.5.7', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.7/Mapillary.jar')
80 //oldVersionDownloadLink 12128, 'v1.5.5', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.5/Mapillary.jar')
81 //oldVersionDownloadLink 10824, 'v1.5.3', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.3/Mapillary.jar')
82 }
83 i18n {
84 pathTransformer = getGithubPathTransformer('spatialdev/MicrosoftStreetside')
85 }
86}
87
88eclipse {
89 project {
90 name = 'MicrosoftStreetside'
91 comment = josm.manifest.description
92 natures 'org.sonarlint.eclipse.core.sonarlintNature', 'ch.acanda.eclipse.pmd.builder.PMDNature', 'org.eclipse.buildship.core.gradleprojectnature'
93 buildCommand 'org.sonarlint.eclipse.core.sonarlintBuilder'
94 buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder'
95 buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder'
96 }
97}
98eclipseClasspath.dependsOn cleanEclipseClasspath
99eclipseProject.dependsOn cleanEclipseProject
100tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject']
101
102tasks.withType(JavaCompile) {
103 // Character encoding of Java files
104 options.encoding = 'UTF-8'
105}
106tasks.withType(Javadoc) {
107 failOnError false
108}
109tasks.withType(com.github.spotbugs.SpotBugsTask) {
110 reports {
111 xml.enabled = false
112 html.enabled = true
113 }
114}
115
116import org.gradle.api.tasks.testing.logging.TestLogEvent
117
118test {
119 testLogging {
120 exceptionFormat "full"
121 events TestLogEvent.FAILED, TestLogEvent.SKIPPED
122 showCauses true
123
124 info {
125 events TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR
126 showStandardStreams = true
127 }
128 }
129}
Note: See TracBrowser for help on using the repository browser.