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

Snapshot repository #6

Open
Nithanim opened this issue Oct 18, 2015 · 4 comments
Open

Snapshot repository #6

Nithanim opened this issue Oct 18, 2015 · 4 comments

Comments

@Nithanim
Copy link
Owner

To test new changes faster, a repository for snapshots would com in handy. It is already up and running but I have to figure out how to deploy with the new deploy plugin.
This should enable the usage of snapshots in your build:

<repository>
    <id>nithanim-private</id>
    <url>http://maven2.nithanim.me/repository/</url>
    <snapshots>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>fail</checksumPolicy>
    </snapshots>
    <releases>
        <enabled>false</enabled>
        <checksumPolicy>fail</checksumPolicy>
    </releases>
</repository>
@aureldussauge
Copy link

I don't use Maven but Gradle, so I added these lines in my build.gradle file.

repositories {
    maven {
        url "http://maven2.nithanim.me/repository/"
    }
}

dependencies {
    compile 'me.nithanim.gw2api:gw2api:0.0.2-SNAPSHOT'
}

@Nithanim
Copy link
Owner Author

Since 0.0.2 is released, you need to use 0.0.3-SNAPSHOT to get the newer versions. (Currently none available)
Or with gradle you could try compile 'me.nithanim.gw2api:gw2api:latest.integration' but i have not tested it myself.

@aureldussauge
Copy link

You're right, it works with latest.integration

@Nithanim
Copy link
Owner Author

Nithanim commented Apr 1, 2016

I think I managed to get the snapshots with bintray (jcenter) working.
You only have to add the following to the pom.xml (replacing the old repository stated above)
You might want to leave the jcenter repository in there to get the release versions.

<repositories>
    <repository>
        <id>jfrog-artifactory-nithanim</id>
        <url>https://oss.jfrog.org/artifactory/repo/</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
        <releases>
            <enabled>false</enabled>
            <checksumPolicy>fail</checksumPolicy>
        </releases>
    </repository>
</repositories>

I am not sure if it already works but my buildserver should build the changes to master automatically and deploy them to this snapshot repository. They will be built with JDK7 instead of JDK8 as I accidentally have done till now.

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

No branches or pull requests

2 participants