Giter Site home page Giter Site logo

jcabraham / activejdbc-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cschabl/activejdbc-gradle-plugin

0.0 0.0 0.0 85 KB

Gradle plugin for instrumenting ActiveJDBC model classes.

License: Apache License 2.0

Groovy 98.71% Java 0.45% Scala 0.84%

activejdbc-gradle-plugin's Introduction

ActiveJDBC Gradle plugin

Build Status

Gradle plugin for instrumenting your project's model classes for the ActiveJDBC ORM framework.

Usage

Add the plugin in addition to Java plugin to the build.gradle file as follows:

plugins {
    id 'java'
    id 'de.schablinski.activejdbc-gradle-plugin' version '1.2'
}

This will create a task instrumentJavaModels in the task group build which is added as doLast action to the compileJava task.

Configuration

The version of the ActiveJDBC instrumentation tool can be configured as follows:

activejdbc.toolVersion = 2.2

The default version is 2.3.

Other JVM languages

Scala

To instrument ActiveJDBC model classes written in Scala, configure the plugin as shown in the build script below (Gradle >= 4.0):

plugins {
    id 'scala'
    id 'de.schablinski.activejdbc-gradle-plugin'
}   

dependencies {
    compile 'org.scala-lang:scala-library:2.12.6'
    compile 'org.javalite:activejdbc:2.2'
    
    activejdbc 'org.scala-lang:scala-library:2.12.6'
}

repositories {
    jcenter()
}

The Scala library must be added on the classpath of ActiveJDBC instrumentation tool (s. configuration activejdbc), because the model classes have a dependency on the Scala library.

Attribution

This project started as a hard fork of the gradle-plugin module of ActiveJDBC to make it available on Gradle's plugin portal.

activejdbc-gradle-plugin's People

Contributors

cschabl avatar

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.