Giter Site home page Giter Site logo

onslip / gradle-one-jar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rholder/gradle-one-jar

10.0 10.0 7.0 372 KB

The gradle-one-jar project is a Gradle plugin that uses One-JAR, a specialised Class-Loader written by Simon Tuffs (http://one-jar.sourceforge.net/), for building self-contained executable jars that include all dependencies.

License: Apache License 2.0

Groovy 100.00%

gradle-one-jar's People

Contributors

leviticusmb avatar naftalmm avatar rholder avatar shelnutt2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gradle-one-jar's Issues

Does not include dependencies configured as "implementation"

Dependencies are not included into the one-jar, if they are configured in implementation scope. However, it works correctly with compile scope, which is now deprecated in Gradle.

I can provide an example if required, but it's very much straight-forward to reproduce this issue.

Gradle 4 support

Transfering this here because it's biting me. Maybe I'll look into it, but anyone else feel free of course... As it stands this version of the plugin is relatively happy in gradle 3, but I and evidently some others have hit this problem in gradle 4+

rholder#34

It looks like something is relying on a toString() somewhere and an object has changed to an object without a useful toString() implementation in 4.

Gradle 7+ compatibility

gradle-one-jar with Gradle 7+ results in

   > Could not create task of type 'OneJar'.
      > Could not get unknown property 'runtime' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

because Gradle [removed the 'runtime' configuration] after 6.x

It would be nice to have a version that works with current Gradle versions.

MR Jar issues

Not actually an issue for this plugin, but perhaps a useful note/discussion/warning until (if) the underlying one-jar issue can be dealt with.

Multi-release artifacts are not finding their MR components. The specific case of primary interest is the newer versions of Log4J which output the following:

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

Adding Multi-Release: true to the Manifest does not solve the problem as it should (see https://stackoverflow.com/a/54713830)

As I said, this is not the plugin's fault, but I suspect users will want to be aware, and if a solution becomes available it can be documented here.

Switch to Gradle 7.0 causes "unknown property 'runtime'"

When I switch to Gradle 7.0 https://github.com/ytai/ioio/pull/250/files I run into a build error

Current Behavior

I run into

> Could not create task ':HelloIOIOConsole:distJar'.
   > Could not create task of type 'OneJar'.
      > Could not get unknown property 'runtime' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

This is the causing block

plugins {
    id "com.github.onslip.gradle-one-jar" version "1.0.6"
}

task distJar(type: OneJar) {                              <--- This is the error line !
    mainClass = 'ioio.examples.hello_console.HelloIOIOConsole'
}

Steps to Reproduce

https://github.com/ytai/ioio/pull/250/files

Environment

Here you see the error https://github.com/ytai/ioio/pull/250/checks?check_run_id=2340438978

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.