Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
start publish heh maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Librazy committed Feb 13, 2019
1 parent d69cce1 commit ec60fd3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
script:
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
if [ "$TRAVIS_BRANCH" != "$MC_VERSION" ]; then exit 0; fi
if [ "$TRAVIS_BRANCH" != "master" ]; then exit 0; fi
if [ $PUBLISH_JAVADOC ]; then
./gradlew javadoc;
pushd ..;
Expand Down
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}

configurations.all {
Expand Down Expand Up @@ -45,6 +46,24 @@ repositories {
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifact sourcesJar
artifact javadocJar
groupId "cat.nyaa"
artifactId "hamsterecohelper"
version "$majorVersion.$minorVersion-SNAPSHOT"
from components.java
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}

dependencies {
// spigot
compileOnly "org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT"
Expand Down

0 comments on commit ec60fd3

Please sign in to comment.