Giter Club home page Giter Club logo

sbt-eclipselink-static-weave's Introduction

sbt-eclipselink-static-weave license

SBT plugin for EclipseLink Static Weaving.
Greatly inspired on eclipselink-staticweave-maven-plugin

Installation

You can find the sbt-eclipselink-static-weave plugin on Maven Central

  1. Add the plugin dependency to your plugins.sbt:

    addSbtPlugin("com.github.atais" % "sbt-eclipselink-static-weave" % "0.1.2")
    

    By default EclipseLink 2.5.1 is used by the plugin to access StaticWeaveProcessor.
    If you would like to override the EclipseLink version, specify it in plugins.sbt:

    libraryDependencies += "org.eclipse.persistence" % "org.eclipse.persistence.jpa" % "<version>"
    
  2. Activate the plugin in your project:

    enablePlugins(EclipseLinkStaticWeaver)
    
  3. Enjoy, your should notice weaving step during your build:

    [info] Done compiling.
    [info] Starting EclipseLink static weaving...
    [info] Finished EclipseLink static weaving in 23345 ms.
    [info] Packaging ...
    

Parameters

persistenceXmlLocation: String

Location of your persistence.xml. Make sure this file is copied into classes folder before weaving.
default: "META-INF/persistence.xml"

staticWeaverLogLevel: Int

Defines Eclipselink logging levels (that are used throughout EclipseLink code) with the following integer values:

  • all - 0
  • finest - 1
  • finer - 2
  • fine - 3
  • config - 4
  • info - 5
  • warning - 6
  • severe - 7
  • off - 8

default: 5

weavedClassesDest: File

Location into which weaved classes are saved. Also, it is a source for jar file building.
default: crossTarget.value / "classes-weaved"

Development

Release

sbt release

prepare file sonatype.sbt in ~/.sbt/1.0/ with content:

credentials += Credentials("Sonatype Nexus Repository Manager",
                           "oss.sonatype.org",
                           USERNAME,
                           PASSWORD)

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.