Skip to content

Add tooling project and sbt plugin #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonas opened this issue Jun 20, 2018 · 7 comments
Closed

Add tooling project and sbt plugin #60

jonas opened this issue Jun 20, 2018 · 7 comments
Assignees
Labels
tooling Build tool integation
Milestone

Comments

@jonas
Copy link
Member

jonas commented Jun 20, 2018

Add a tools project to provide an API for build tools to easily use the generator. The API could be based on the builder pattern, e.g. https://docs.rs/bindgen/0.37.0/bindgen/struct.Builder.html

Use the tooling API to create a simple sbt project which can eventually be used by the tests and bindings (#59 )

@jonas jonas added this to the 0.2 milestone Jun 20, 2018
@jonas jonas added the tooling Build tool integation label Jun 25, 2018
@kornilova203
Copy link
Member

@jonas, I need help with creating an sbt plugin
I tried to create project:

lazy val plugin = project
  .in(file("plugin"))
  .settings(
    name := "sbt-scala-native-bindgen",
    sbtPlugin := true
  )

But it causes version conflicts:

[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn]  * xml-apis:xml-apis:1.3.04 is selected over 2.0.2
[warn]      +- org.apache.xmlgraphics:batik-script:1.8            (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-anim:1.8              (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-transcoder:1.8        (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-bridge:1.8            (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-svg-dom:1.8           (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-parser:1.8            (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-dom:1.8               (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-css:1.8               (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-ext:1.8               (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-extension:1.8         (depends on 1.3.04)
[warn]      +- org.apache.xmlgraphics:batik-svggen:1.8            (depends on 1.3.04)
[warn]      +- xalan:xalan:2.7.0                                  (depends on 2.0.2)

If I refresh project in IntelliJ IDEA it fails with this error (it does not happen in console):

[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/home/lk/projects/gsoc/scala-native-bindgen/"), "plugin"):
[error]    org.scala-lang.modules:scala-xml _2.11, _2.12
[error]    org.scala-lang.modules:scala-parser-combinators _2.11, _2.12

I don't know how to fix this version conflict

@jonas
Copy link
Member Author

jonas commented Jul 5, 2018

I'll take a look tonight or tomorrow.

jonas added a commit that referenced this issue Jul 6, 2018
jonas added a commit that referenced this issue Jul 6, 2018
jonas added a commit that referenced this issue Jul 6, 2018
kornilova203 added a commit that referenced this issue Jul 10, 2018
@kornilova203
Copy link
Member

Will we publish the plugin before releasing 0.2?

@jonas
Copy link
Member Author

jonas commented Jul 10, 2018

Yes that is my plan. I will make a PR to configure publishing.

@jonas
Copy link
Member Author

jonas commented Jul 10, 2018

I've moved the release date of the 0.2 milestone to 2018-07-16.

@kornilova203
Copy link
Member

Okay, I drafted v0.2 release

@jonas
Copy link
Member Author

jonas commented Jul 24, 2018

Fixed in #130

@jonas jonas closed this as completed Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Build tool integation
Projects
None yet
Development

No branches or pull requests

2 participants