Coder Social home page Coder Social logo

Comments (5)

aldenml avatar aldenml commented on August 18, 2024

Unfortunately not, at some point there was a script but was removed a long time ago. We have plans to put this in maven.

from frostwire-jlibtorrent.

Jichao avatar Jichao commented on August 18, 2024

I need to write the gradle script by myself or find it in the git history to build the jar file since there is no binary release?

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

You can look in the history, but I rather recommend you write a simple gradle script from scratch.

from frostwire-jlibtorrent.

Jichao avatar Jichao commented on August 18, 2024

Thanks for your reply, i have managed to create the jar file, and all works fine on android/mac ox yosemite.

/*
 Usage:
 gradle build - builds code and creates a single jar in build/libs/frostwire-jlibtorrent.jar
 gradle clean - cleans the build.
 gradle tasks - shows available tasks.
*/
apply plugin: 'java'

if (!System.getenv('ANT_HOME')?.trim()) { 
    throw new GradleException("ERROR: ANT_HOME environment variable not set.\n\n(e.g. on MacOSX: /usr/local/Cellar/ant/1.9.3/libexec\n      on Linux:  /usr/share/ant)")
}

sourceCompatibility = 1.7

sourceSets {
    main {
        java {
            srcDir '../src'
        }
    }
}

jar {
    archiveName='frostwire-jlibtorrent.jar'
    exclude('META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF')
}

Steps to generate this file
git checkout $(git rev-list -n 1 HEAD -- build/build.gradle)^ -- build/build.gradle
modify the path from java/src to ../src

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Thank you, I probably take this as a starting point.

from frostwire-jlibtorrent.

Related Issues (20)

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.