Comments (11)
I removed the please contribute label for now if that's ok =). I completely agree that the feature needs to be implemented, though! I penned down the criteria for "please contribute!" label in the README.md.
from shipkit.
Don't you think that Serializer
class should not write serialized data to file? In my opinion Serializer
class should only return JSONString
and some FileWriter
could be used to store serialized data into file.
Why? Because now we can't reuse AllContributorsSerializer
to implement ReleaseNotesSerializer
as ContributionSet
is part of ReleaseNotesData
.
from shipkit.
@szczepiq it's not done yet. I just made a little part. Think that You should reopen it and I can finish this task completely. Just want to know if this is good way before doing all things.
from shipkit.
Hi again, I want to ask if there is any reason why we using JSON simple library instead of Jackson or something else?
We got to manually format object to strings with this lib, and deserialization of complex structures with collections is getting really complicated.
from shipkit.
Hey! Nice catch! Please suggest an alternative library. You can kick off the discussion here, on our slack or on the mailing list.
One of our goals is to keep the dependencies of library as narrow and as simple as possible to avoid pushing down version conflicts onto our clients (e.g. the cost of reuse...). I suspect that we didn't choose some other library for those reasons :)
from shipkit.
I think that Jacskon is a really good option. We can use ObjectMapper
to convert to JSON and back to Java object with given class:
User user = new User();
//Object to JSON in file
mapper.writeValue(new File("c:\\user.json"), user);
And back to Java object:
String jsonInString = "{'name' : 'mkyong'}";
//JSON from file to Object
User user = mapper.readValue(new File("c:\\user.json"), User.class);
Without any casting as in simple JSON
or reading field by field. Simple JSON
returns JsonObject
, JsonArray
etc. instead of typed object and we got to do many things manually. I think its good lib for small project when we want to read one json file.
from shipkit.
Dependencies of Jackson:
+--- com.fasterxml.jackson.core:jackson-databind:2.8.8.1
| +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0
| \--- com.fasterxml.jackson.core:jackson-core:2.8.8
Dependencies of json-simple:
+--- com.github.cliftonlabs:json-simple:2.1.2
I don't have strong preferences but with Jackson the life is simpler :) We need only remember to use 2.6.6 (05-Apr-2016)
version for Java 1.6 compatibility: https://github.com/FasterXML/jackson-databind/blob/master/release-notes/VERSION
from shipkit.
@szczepiq whats your opinion? Should I move to Jackson within this issue and replace Simple Json in app?
from shipkit.
We had this discussion about a month ago, and decided against any reflection-based library. One reason is that most of them are much heavier, not only due to transitive dependencies but also the size of libraries themselves (jackson-databind 1.2 MB vs json-simple 17 KB). I'm not sure if that will matter in the long run, but for now we don't have much dependencies and it would be good to keep it that way. Additionally @NagRock serialization/deserialization with jackson is not that straightforward if we want to serialize to file and then deserialize, like with release notes. Since the model is mostly based on interfaces we would have to use some kind of jackson inheritance to implement it.
from shipkit.
So you suggest to continue working on this with json simple? Im ok with that but it is a little bit tedious work.
from shipkit.
Ok, now it can be closed.
from shipkit.
Related Issues (20)
- javadoc and java plugins are applied in the wrong order HOT 1
- Disabling Release Notes Generation HOT 3
- Unicode in user name of commit HOT 1
- Instructions/compatibility with GitHub Actions HOT 2
- Release to GH and add generated files to release HOT 8
- POM exception when using shipkit with jar archiveClassifier HOT 2
- deprecation warning: The baseName property has been deprecated HOT 3
- BintrayDefaultArtifactUrlResolver does not URL encode slashes in file_path HOT 1
- Adding an archive from a subproject's task causes a build failure HOT 10
- Support for building a project multiple times (multiple artifacts) and publishing as one version HOT 13
- Default POM generated by Shipkit does not meet Maven Central requirements HOT 2
- github access_token query parameter deprecated, breaks after 2020/07/01 HOT 6
- -PskipComparePublications=true doesn't work with ./gradlew -PskipComparePublications=true
- Question: GitHub release provider for Travis needed? HOT 1
- Release normal jar and fat jar at the same time HOT 7
- Shipkit for Scala multi-variant project HOT 4
- Build fails due to upgrade downstream failure on code coverage check
- GradlePortalReleasePlugin: Cannot add task 'validatePlugins' as a task with that name already exists
- Include LICENSE to META-INF rather that to the root of the archives HOT 2
- Will shipkit automatically tag and push to bintray after setup? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shipkit.