Ignore:
Timestamp:
2021-07-15T01:07:58+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #19998 - update Streetside dependencies (patch by taylor.smock, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/build.gradle

    r34419 r35779  
     1import com.github.spotbugs.snom.SpotBugsTask
     2import net.ltgt.gradle.errorprone.CheckSeverity
     3
    14plugins {
    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 
     5  id 'java'
    96  id 'eclipse'
    107  id 'jacoco'
    11   id 'java'
    128  id 'pmd'
     9  id("com.github.ben-manes.versions").version("0.39.0")
     10  id("net.ltgt.errorprone").version("2.0.2")
     11  id("org.kordamp.markdown.convert").version("1.2.0")
     12  id("org.sonarqube").version("3.3")
     13  id('com.github.spotbugs').version('4.7.2')
     14  id('org.openstreetmap.josm').version("0.7.1")
     15  id("com.diffplug.spotless").version("5.14.1")
    1316}
    1417
     
    3336  jcenter()
    3437  mavenCentral()
     38  maven {
     39    url "https://josm.openstreetmap.de/nexus/content/repositories/releases/"
     40  }
    3541}
    3642
     43def versions = [
     44  awaitility: "4.1.0",
     45  jackson: "2.12.4",
     46  jmockit: "1.49.a",
     47  junit: "5.7.1",
     48  wiremock: "2.27.2"
     49]
     50
    3751dependencies {
    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'
    42   compile 'log4j:log4j:1.2.17'
    43   testImplementation ('org.openstreetmap.josm:josm-unittest'){changing=true}
    44   testImplementation 'com.github.tomakehurst:wiremock:2.17.0'
    45   testImplementation 'junit:junit:4.12'
     52  if (!JavaVersion.current().isJava9Compatible()) {
     53    errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")
     54  }
     55  implementation "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
     56  implementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}"
     57  implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
     58  implementation "us.monoid.web:resty:0.3.2"
     59  implementation "log4j:log4j:1.2.17"
     60  testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${versions.junit}")
     61  testImplementation("org.junit.jupiter:junit-jupiter-params:${versions.junit}")
     62  testImplementation("org.junit.jupiter:junit-jupiter-api:${versions.junit}")
     63  testImplementation("org.junit.vintage:junit-vintage-engine:${versions.junit}")
     64  testImplementation ("org.openstreetmap.josm:josm-unittest"){changing=true}
     65  testImplementation "com.github.tomakehurst:wiremock:${versions.wiremock}"
     66  testImplementation("org.jmockit:jmockit:${versions.jmockit}")
     67  testImplementation("org.awaitility:awaitility:${versions.awaitility}")
    4668}
    4769
     
    6991}
    7092
     93spotless {
     94  enforceCheck = false
     95  format("misc") {
     96    target("**/*.gradle", "**.*.md", "**/.gitignore")
     97
     98    trimTrailingWhitespace()
     99    indentWithSpaces(2)
     100    endWithNewline()
     101  }
     102  java {
     103    trimTrailingWhitespace()
     104    indentWithSpaces(2)
     105    endWithNewline()
     106    removeUnusedImports()
     107  }
     108}
     109
    71110josm {
    72111  debugPort = 7051
    73   manifest {
    74       //oldVersionDownloadLink 10824, 'v1.5.3', new URL('https://github.com/JOSM/Mapillary/releases/download/v1.5.3/Mapillary.jar')
    75   }
    76   i18n {
    77     pathTransformer = getGithubPathTransformer('spatialdev/MicrosoftStreetside')
    78   }
    79112}
    80113
     
    100133  failOnError false
    101134}
    102 tasks.withType(com.github.spotbugs.SpotBugsTask) {
     135tasks.withType(SpotBugsTask) {
    103136  reports {
    104137    xml.enabled = false
     
    110143
    111144test {
     145  project.afterEvaluate {
     146    jvmArgs("-javaagent:${classpath.find { it.name.contains("jmockit") }.absolutePath}")
     147  }
     148  useJUnitPlatform()
    112149  testLogging {
    113150    exceptionFormat "full"
Note: See TracChangeset for help on using the changeset viewer.