Comments (6)
from javapoet-dsl.
Thanks for pointing it out, I might have been uploading to jcenter the wrong way all these time. My immediate reaction is that it is related to an issue from bintray-release. I'll try to contribute for a fix (or abandon this plugin altogether if I can't) and will update when I have more information.
from javapoet-dsl.
If you don't mind I can submit a PR with all the pieces you're missing to publish properly to Sonatype OSS / Maven Central.
You'll need to create a Sonatype account and register your group name to do the publishing under though.
from javapoet-dsl.
I appreciate the help, but I've always been uploading to jcenter and removing all my artifacts to OSS/Maven Central might take some time.
However, version 0.3-rc2 is out with correct sources jar. Javadoc jar is still empty though, I think it's related to this issue. Keep in mind that 0.3-rc2 is a rather large update, substantial amount of refactoring may be needed.
from javapoet-dsl.
@hendraanggrian in rc2 it seems you can only construct, e.g. a TypeSpec, while in the scope of a TypeContainer, of which the only implementation seems to be a JavaFileBuilder.
This means I can't just independently build a TypeSpec without being inside a JavaFile construct right now, which seems like a step backwards.
from javapoet-dsl.
I've come to realize it might be important to create these specs independently. So in rc3, specs (e.g. TypeSpec) and their builder classes can be modified using invoke
operator:
import com.hendraanggrian.javapoet.invoke
val myType = (TypeSpec.classBuilder("MyClass")) {
...
}
val myOtherType = myType {
...
}
The effectiveness of these operator functions compared to full-on dedicated top-level functions (e.g. buildTypeSpec
), however, is debatable.
from javapoet-dsl.
Related Issues (3)
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 javapoet-dsl.