Giter Site home page Giter Site logo

Comments (6)

kevinherron avatar kevinherron commented on June 16, 2024

Screen Shot 2019-06-11 at 2 00 33 PM

from javapoet-dsl.

hendraanggrian avatar hendraanggrian commented on June 16, 2024

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.

kevinherron avatar kevinherron commented on June 16, 2024

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.

hendraanggrian avatar hendraanggrian commented on June 16, 2024

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.

kevinherron avatar kevinherron commented on June 16, 2024

@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.

hendraanggrian avatar hendraanggrian commented on June 16, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.