Git Product home page Git Product logo

gradle-for-delphi's Introduction

Gradle-for-Delphi

Download dependencies from repositories, extract and create new jar, create JNI file, add to project.

This addon adds gradle functionality to the Delphi IDE. It downloads Libraries with all dependencies. It then extract all the classes from the jar files, and creates a new jar with these classes. This jar is run through Java2OP to create a JNI file. This JNI file and the jar file are added to the project.

You have to download gradle from here https://gradle.org/releases/. Install and add gradle to your path variable.

Install GetJars addon, and a new menuitem "Gradle" will appear under the Project menu.

Copy your java2op directory (e.g. C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\converters\java2op) to a directory with no spaces in the path (e.g. C:\Java2OP).

HOW TO USE:

Enter the path of your Java2OP directory in the "Java2OP location" box. You have to edit the cache.txt in the Java2OP directory. if eks. you are downloading google play services, you have to remove those entries. You also have disable the build in jars in your projects libs entries. You should avoid using buildin libs, except for FMX.jar.

In the "Dependencies" box, enter the libs you want to download (Copy eks. from maven repository Gradle link). Try to keep the number of libraries down, as the jni file can grow very large.

In the "Additional (Local) Dependencies" enter any local libs that is needed for this job.

In the "Exclude when building JNI pas file" enter libs that is not to be processed by Java2OP. This can be a library that Java2OP cannot process (Hopefully you don't need to access it in your code). To reduce the size of the jni pas file, you can experiment with excluding libs.

In the "Job name" box enter a jobname. This will name the jar and JNI files.

Hit "Go"

As the JNI file can grow large you can use "Shrink JNI Files" addon, which can be downloaded from here https://github.com/helgovic/Delphi-shrink-JNI-files

gradle-for-delphi's People

Contributors

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