Changeset 35779 in osm for applications/editors/josm/plugins/MicrosoftStreetside/build.gradle
- Timestamp:
- 2021-07-15T01:07:58+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/MicrosoftStreetside/build.gradle
r34419 r35779 1 import com.github.spotbugs.snom.SpotBugsTask 2 import net.ltgt.gradle.errorprone.CheckSeverity 3 1 4 plugins { 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' 9 6 id 'eclipse' 10 7 id 'jacoco' 11 id 'java'12 8 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") 13 16 } 14 17 … … 33 36 jcenter() 34 37 mavenCentral() 38 maven { 39 url "https://josm.openstreetmap.de/nexus/content/repositories/releases/" 40 } 35 41 } 36 42 43 def 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 37 51 dependencies { 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}") 46 68 } 47 69 … … 69 91 } 70 92 93 spotless { 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 71 110 josm { 72 111 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 }79 112 } 80 113 … … 100 133 failOnError false 101 134 } 102 tasks.withType( com.github.spotbugs.SpotBugsTask) {135 tasks.withType(SpotBugsTask) { 103 136 reports { 104 137 xml.enabled = false … … 110 143 111 144 test { 145 project.afterEvaluate { 146 jvmArgs("-javaagent:${classpath.find { it.name.contains("jmockit") }.absolutePath}") 147 } 148 useJUnitPlatform() 112 149 testLogging { 113 150 exceptionFormat "full"
Note:
See TracChangeset
for help on using the changeset viewer.
