Ignore:
Timestamp:
2024-03-14T16:34:12+01:00 (10 months ago)
Author:
taylor.smock
Message:

StreetSide: Update to official API

This also moves the plugin to Java 21 (mostly for virtual threads), reformats the
code to match the JOSM standard (4 spaces), and fixes a bunch of lint issues.

Additionally, a lot of cruft from when this plugin was copied from Mapillary was
removed. That was largely related to image import, uploading, and login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/gradle/tool-config.gradle

    r35779 r36228  
    1 def pmdVersion = "6.36.0"
    2 def spotbugsVersion = "4.3.0"
    3 def jacocoVersion = "0.8.7"
    4 def errorproneVersion = "2.7.1"
    5 
    6 // Set up ErrorProne (currently only for JDK8, until JDK9 is supported)
    7 dependencies.errorprone "com.google.errorprone:error_prone_core:$errorproneVersion"
    8 /*
    9 tasks.withType(JavaCompile) {
    10 options.compilerArgs += ['-Xep:DefaultCharset:ERROR',
    11   '-Xep:ClassCanBeStatic:ERROR',
    12   '-Xep:StringEquality:ERROR',
    13   '-Xep:MethodCanBeStatic:WARN',
    14   '-Xep:RemoveUnusedImports:WARN',
    15   '-Xep:PrivateConstructorForUtilityClass:WARN',
    16   '-Xep:WildcardImport:WARN',
    17   '-Xep:LambdaFunctionalInterface:WARN',
    18   '-Xep:ConstantField:WARN']
    19 }
    20 */
    21 
    22 // Spotbugs config
    23 spotbugs {
    24   toolVersion = spotbugsVersion
    25   ignoreFailures = true
    26   effort = "max"
    27   reportLevel = "low"
    28   //sourceSets = [sourceSets.main, sourceSets.test]
    29 }
    30 
    311// JaCoCo config
    322jacoco {
    33   toolVersion = jacocoVersion
     3  toolVersion = libs.versions.jacoco.get()
    344}
    355jacocoTestReport {
    366  reports {
    37     xml.enabled = true
    38     html.destination file("$buildDir/reports/jacoco")
     7    xml.required = true
    398  }
     9  dependsOn test
    4010}
    4111build.dependsOn jacocoTestReport
     
    4313// PMD config
    4414pmd {
    45   toolVersion pmdVersion
     15  toolVersion libs.versions.pmd.get()
    4616  ignoreFailures true
    4717  ruleSetConfig = resources.text.fromFile('config/pmd/ruleset.xml')
     
    5020
    5121// SonarQube config
    52 sonarqube {
     22sonar {
    5323  properties {
    5424    property 'sonar.forceAuthentication', 'true'
Note: See TracChangeset for help on using the changeset viewer.