floscher / gradle-josm-plugin Goto Github PK
View Code? Open in Web Editor NEWA Gradle plugin for developing JOSM plugins (mirrored from GitLab)
Home Page: https://josm.gitlab.io/gradle-josm-plugin/
License: GNU General Public License v3.0
A Gradle plugin for developing JOSM plugins (mirrored from GitLab)
Home Page: https://josm.gitlab.io/gradle-josm-plugin/
License: GNU General Public License v3.0
When building a plugin without cleaning and it was already built before, the *.jar manifest does not contain the translated plugin description.
Currently the translated description is added in the MoCompile
task, but only if that task is not UP-TO-DATE
.
It should be ensured that the translated description must always be written to the manifest.
This was brought up in JOSM/Mapillary#77
When I build the plugin and publish to my own maven directory hosted on S3, the plugin jar includes the file
META-INF/gradle-plugins/org.openstreetmap.josm.properties
instead of the file
META-INF/gradle-plugins/gradle-josm-plugin.properties
When I want to load the plugin from my S3-based maven repo, I therefore have to
use the plugin id org.openstreetmap.josm
instead of gradle-josm-plugin
, see build.gradle
add a resultion strategy to settings.gradle
, see settings.gradle
Hi
when I import the gradle-josm-plugin
in IntelliJ, imports for java classes like java.time.Duration
in build.gradle.kts
don't work. In kotlin files they don't work either.
I googled but I didn't come up with a solution.
Do you use IntelliJ too? Did you have the same problem? Do you have a workaround?
Thanks in advance!
Hi.
I was trying to run Mapillary JOSM plugin using "runJosm" task, I'm facing following issue:
2022-07-07 16:57:44.657 SEVERE: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
at org.openstreetmap.josm.tools.PlatformHookWindows.isDotNet45Installed(PlatformHookWindows.java:628)
at org.openstreetmap.josm.tools.PlatformHookWindows.webRequest(PlatformHookWindows.java:676)
at org.openstreetmap.josm.tools.PlatformHookWindows.getX509Certificate(PlatformHookWindows.java:362)
at org.openstreetmap.josm.io.CertificateAmendment.addMissingCertificates(CertificateAmendment.java:240)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:878)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:741)
2022-07-07 16:57:45.004 SEVERE: Unable to get Windows build number: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
2022-07-07 16:57:45.236 SEVERE: java.lang.IllegalStateException: HTTP factory has not been set
java.lang.IllegalStateException: HTTP factory has not been set
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:557)
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:545)
at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:491)
at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284)
at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227)
at org.openstreetmap.josm.io.CachedFile.getByteContent(CachedFile.java:245)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.getTestedVersion(JosmUpdatePanel.java:70)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.readCurrentVersion(JosmUpdatePanel.java:53)
at java.base/java.lang.Thread.run(Thread.java:833)
I've even tried to crate a new project with such build.gradle
:
plugins {
id 'java'
id "org.openstreetmap.josm" version "0.8.2"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
josm {
pluginName = "MyAwesomePluginName"
josmCompileVersion = 18511
manifest {
description = "The description of my awesome plugin"
mainClass = "org.openstreetmap.josm.plugins.myawesomeplugin.MyAwesomePlugin"
minJosmVersion = 18511
}
}
Results were the same. I'm using IntelliJ IDEA on Windows 10, Azul 17 JDK.
The localDist
task generates a plugin update site. When using the current version v0.3.2
of the gradle-josm-plugin, that update site contains a manifest with only Manifest-Version: 1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.