source: subversion/applications/editors/josm/plugins/MicrosoftStreetside/build.gradle @ 34317

Last change on this file since 34317 was 34317, checked in by renerr18, 6 months ago

Initial checkin of MicrosoftStreetside? source

File size: 2.9 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  testImplementation ('org.openstreetmap.josm:josm-unittest'){changing=true}
42  testImplementation 'junit:junit:4.12'
43}
44
45sourceSets {
46  main {
47    java {
48      srcDirs = ['src']
49    }
50    po {
51      srcDirs = ['poSrc']
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 {
74  }
75  i18n {
76    //pathTransformer = getGithubPathTransformer('JOSM/Mapillary')
77  }
78}
79
80eclipse {
81  project {
82    name = 'MicrosoftStreetside'
83    comment = josm.manifest.description
84    natures 'org.sonarlint.eclipse.core.sonarlintNature', 'ch.acanda.eclipse.pmd.builder.PMDNature', 'org.eclipse.buildship.core.gradleprojectnature'
85    buildCommand 'org.sonarlint.eclipse.core.sonarlintBuilder'
86    buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder'
87    buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder'
88  }
89}
90eclipseClasspath.dependsOn cleanEclipseClasspath
91eclipseProject.dependsOn cleanEclipseProject
92tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject']
93
94tasks.withType(JavaCompile) {
95  // Character encoding of Java files
96  options.encoding = 'UTF-8'
97}
98tasks.withType(Javadoc) {
99  failOnError false
100}
101tasks.withType(com.github.spotbugs.SpotBugsTask) {
102  reports {
103    xml.enabled = false
104    html.enabled = true
105  }
106}
107
108import org.gradle.api.tasks.testing.logging.TestLogEvent
109
110test {
111  testLogging {
112    exceptionFormat "full"
113    events TestLogEvent.FAILED, TestLogEvent.SKIPPED
114    showCauses true
115
116    info {
117      events TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR
118      showStandardStreams = true
119    }
120  }
121}
122
Note: See TracBrowser for help on using the repository browser.