Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0 how to use as a library in IDEA or Eclipse? #232

Open
SnailOk opened this issue Dec 13, 2018 · 9 comments
Open

v2.0 how to use as a library in IDEA or Eclipse? #232

SnailOk opened this issue Dec 13, 2018 · 9 comments

Comments

@SnailOk
Copy link

SnailOk commented Dec 13, 2018

No description provided.

@SnailOk SnailOk changed the title v2.0 how to use as a libary in IDEA or Eclipse? v2.0 how to use as a library in IDEA or Eclipse? Dec 13, 2018
@Dead-off
Copy link
Collaborator

Unfortunately i cannot release new version without private keys but you can download it from jitpack repo. See my last comment here: #225

@Dead-off
Copy link
Collaborator

or you don't have build tool?

@SnailOk
Copy link
Author

SnailOk commented Dec 14, 2018

Unfortunately i cannot release new version without private keys but you can download it from jitpack repo. See my last comment here: #225

in fact ,I used v1.5 jar before.But I meet a problem ,I couldn't download file .I guess I am behind NAT, InetAddress.getLocalHost() is 192.168.0.108,so I don't know how to solve

@Dead-off
Copy link
Collaborator

NAT it not a problem. Other peers cannot connect to you but you still can connect to peers

@SnailOk
Copy link
Author

SnailOk commented Dec 15, 2018

NAT it not a problem. Other peers cannot connect to you but you still can connect to peers

yes,I found I could download some video ,but it need to spend too long time.I want to know whether there is a way to solve NAT,if I need to share a seed ? And will it be successful sharing in the LAN?Finally, thank you for answering my question.

@SnailOk
Copy link
Author

SnailOk commented Dec 17, 2018

or you don't have build tool?
thank you ,I know how to build it now.

@RumoEL
Copy link

RumoEL commented Jan 20, 2021

for developer ttorrent: pls add in .gitignore:
.project
.classpath
.settings

@prampec
Copy link

prampec commented Jun 10, 2021

It is still not well described how to do this jitpack repo works. Thus ... add this to your pom.xml:

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
        <repository>
            <id>jboss-thirdparty-releases</id>
            <name>JBoss Thirdparty Releases</name>
            <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
        </repository>
    </repositories>

and...

    <dependencies>
        <dependency>
            <groupId>com.github.mpetazzoni</groupId>
            <artifactId>ttorrent</artifactId>
            <version>ttorrent-2.0</version>
        </dependency>
    </dependencies>

Done!

@syslogic
Copy link

syslogic commented Mar 2, 2022

With Gradle:

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.mpetazzoni:ttorrent:ttorrent-2.0'
}

Also for Maven, this should be (it won't build without <version>3.1.0</version>):

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants