Changeset 32693 in osm for applications/editors/josm/plugins
- Timestamp:
- 2016-07-21T15:24:10+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 7 added
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/.eclipse-pmd
r32063 r32693 3 3 <analysis enabled="true" /> 4 4 <rulesets> 5 <ruleset name="Ruleset for josm-mapillary-plugin" ref=" .settings/pmd-ruleset.xml" refcontext="project" />5 <ruleset name="Ruleset for josm-mapillary-plugin" ref="config/pmd/ruleset.xml" refcontext="project" /> 6 6 </rulesets> 7 7 </eclipse-pmd> -
applications/editors/josm/plugins/mapillary/.settings/launchers/Remote debug JOSM-Mapillary.launch
r32381 r32693 17 17 <mapAttribute key="org.eclipse.jdt.launching.CONNECT_MAP"> 18 18 <mapEntry key="hostname" value="localhost"/> 19 <mapEntry key="port" value=" 5006"/>19 <mapEntry key="port" value="7051"/> 20 20 </mapAttribute> 21 21 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="JOSM-Mapillary"/> -
applications/editors/josm/plugins/mapillary/build.gradle
r32689 r32693 5 5 apply plugin: 'java' 6 6 apply plugin: 'pmd' 7 8 configurations { 9 compile.extendsFrom(requiredPlugin) 10 } 11 12 apply from: 'gradle/manifest.gradle' 13 apply from: 'gradle/josm-tasks.gradle' 14 apply from: 'gradle/tool-config.gradle' 7 15 8 16 sourceCompatibility = '1.8' … … 39 47 compile(':josm:10583') 40 48 // For plugins it's irrelevant, which version is specified, always the latest version is used. 41 compile(name: 'apache-commons'){changing=true}42 compile(name: 'apache-http'){changing=true}49 requiredPlugin (name: 'apache-commons'){changing=true} 50 requiredPlugin (name: 'apache-http'){changing=true} 43 51 44 52 testCompile 'junit:junit:4.12' … … 82 90 tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject'] 83 91 84 pmd {85 toolVersion project.property('tools.pmd.version')86 ignoreFailures true87 targetJdk 1.7 // 1.8 is not yet available (as of Gradle 2.14, see https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/quality/TargetJdk.html)88 ruleSetConfig = resources.text.fromFile('.settings/pmd-ruleset.xml')89 }90 91 build.dependsOn jacocoTestReport92 93 92 tasks.withType(Javadoc) { 94 93 failOnError false 95 }96 97 /** FindBugs configuration */98 findbugs {99 toolVersion = project.property('tools.findbugs.version')100 ignoreFailures = true101 effort = "max"102 reportLevel = "low"103 }104 tasks.withType(FindBugs) {105 reports {106 xml.enabled = false107 html.enabled = true108 }109 }110 111 /** JaCoCo configuration */112 jacoco {113 toolVersion = project.property('tools.jacoco.version')114 }115 jacocoTestReport {116 reports {117 xml.enabled true118 html.destination "$buildDir/reports/jacoco"119 }120 94 } 121 95 … … 126 100 } 127 101 } 128 129 jar {130 manifest {131 attributes(132 "Gradle-Version": project.getGradle().getGradleVersion(),133 "Created-By": System.getProperty("java.version")+" ("+System.getProperty("java.vendor")+")",134 "Plugin-Mainversion": project.property('plugin.main.version'),135 "Plugin-Version": project.property('plugin.svnrevision'),136 "Plugin-SemVersion": project.property('plugin.version'),137 "Plugin-Class": project.property('plugin.class'),138 "Plugin-Description": project.property('plugin.description'),139 "Plugin-Date": String.format("%1\$tY-%1\$tm-%1\$tdT%1\$tH:%1\$tM:%1\$tS%1\$tz", new GregorianCalendar()),140 "Author": project.property('plugin.author'),141 "Plugin-Link": project.property('plugin.link'),142 "Plugin-Icon": project.property("plugin.icon"),143 "Plugin-Requires": project.property("plugin.requires"),144 "Plugin-Canloadatruntime": project.property('plugin.canloadatruntime')145 )146 }147 }148 149 task activatePlugin(type: Copy) {150 if (!new File("$buildDir/.josm/preferences.xml").exists()) {151 from "gradle/josm-preferences.xml"152 into "$buildDir/.josm"153 rename 'josm-preferences.xml', 'preferences.xml'154 }155 }156 157 task installPlugin(type: Copy) {158 from "$buildDir/libs/${project.name}.jar"159 from configurations.runtime160 into "$buildDir/.josm/plugins"161 include 'apache*.jar'162 include "${project.name}.jar"163 rename "${project.name}.jar", 'Mapillary.jar'164 rename 'apache-(.*)-.*.jar', 'apache-$1.jar'165 }166 installPlugin.dependsOn jar167 installPlugin.dependsOn activatePlugin168 169 /**170 * This runs the JOSM-version specified in the dependency configuration above.171 * The home-directory of this JOSM is located in $buildDir/.josm, so it doesn't interfere with any other JOSM-installations.172 */173 task runJosm(type: JavaExec) {174 classpath = sourceSets.main.runtimeClasspath175 main = 'JOSM'176 args '--offline=josm_website'177 jvmArgs "-Djosm.home=$buildDir/.josm"178 }179 runJosm.dependsOn installPlugin180 181 182 task debugJosm(type: JavaExec) {183 classpath = sourceSets.main.runtimeClasspath184 main = 'JOSM'185 args '--offline=josm_website'186 jvmArgs "-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006", "-Djosm.home=$buildDir/.josm"187 }188 debugJosm.dependsOn installPlugin -
applications/editors/josm/plugins/mapillary/config/josm/preferences.xml
r32690 r32693 6 6 <entry value='apache-http'/> 7 7 </list> 8 <tag key='pluginmanager.time-based-update.policy' value='never'/> 9 <tag key='pluginmanager.version-based-update.policy' value='never'/> 8 10 </preferences> -
applications/editors/josm/plugins/mapillary/gradle.properties
r32680 r32693 7 7 plugin.main.version=10580 8 8 plugin.requires=apache-commons;apache-http 9 plugin.version=1.1.510 9 plugin.svnrevision=31976 11 10 #plugin.early=... 12 11 #plugin.stage=... 13 12 14 tools.pmd.version=5.5.0 15 tools.findbugs.version=3.0.1 16 tools.jacoco.version=0.7.7.201606060606 13 # The name for the JAR file produced by Gradle (optional, defaults to ${project.name}) 14 plugin.jar.name=Mapillary 15 16 tool.pmd.version=5.5.0 17 tool.findbugs.version=3.0.1 18 tool.jacoco.version=0.7.7.201606060606 -
applications/editors/josm/plugins/mapillary/gradle/wrapper/gradle-wrapper.properties
r32285 r32693 3 3 zipStoreBase=GRADLE_USER_HOME 4 4 zipStorePath=wrapper/dists 5 distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip 6 distributionSha256Sum= 65bbc0ef9c48be86fb06522fc927d59dcc7c04266f2bb8156be76971f7c3fc4a5 distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 distributionSha256Sum=88a910cdf2e03ebbb5fe90f7ecf534fc9ac22e12112dc9a2fee810c598a76091
Note:
See TracChangeset
for help on using the changeset viewer.