Skip to content
This repository was archived by the owner on Feb 10, 2018. It is now read-only.

Commit

Permalink
clear project setup, make it upload to nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Mar 18, 2017
1 parent 4b70484 commit 1307f6e
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 35 deletions.
48 changes: 47 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
group 'me.minidigger.voxelgameslib'
version '1.0-SNAPSHOT'

buildscript {
repositories {
maven {
url "https://jcenter.bintray.com/"
}
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.+'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.+'
}
}

apply plugin: "java"
apply plugin: "idea"
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'com.github.johnrengelman.shadow'

sourceCompatibility = "1.8"
targetCompatibility = "1.8"
Expand All @@ -11,6 +26,19 @@ compileJava.options.encoding = "UTF-8"

repositories {
mavenCentral()
maven {
url "http://atlas.minidigger.me:4444/nexus/content/groups/public"
}
}

shadowJar {
archiveName = "externaltools-${version}.jar"
mergeServiceFiles()
}

dependencies {
compile project(":jskill")
compile project(":bungeecord-chat")
}

subprojects {
Expand Down Expand Up @@ -43,4 +71,22 @@ subprojects {
downloadSources = true
}
}
}
}

extraArchive {
sources = true
tests = false
javadoc = true //TODO fix javadoc and sources
}

nexus {
sign = true
repositoryUrl = 'http://atlas.minidigger.me:4444/repository/maven-public/'
snapshotRepositoryUrl = 'http://atlas.minidigger.me:4444/repository/maven-snapshots/'
}

artifacts {
archives shadowJar
}

build.finalizedBy(shadowJar)
14 changes: 1 addition & 13 deletions bungeecord-chat/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
group 'me.minidigger.voxelgameslib'
version '1.0-SNAPSHOT'

apply plugin: 'java'

sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
version '1.0-SNAPSHOT'
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Mar 14 20:14:42 CET 2017
#Sat Mar 18 11:28:51 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
19 changes: 8 additions & 11 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash

##############################################################################
##
Expand Down Expand Up @@ -154,19 +154,16 @@ if $cygwin ; then
esac
fi

# Escape application args
save ( ) {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
8 changes: 0 additions & 8 deletions jskill/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
group 'me.minidigger.voxelgameslib'
version '1.0-SNAPSHOT'

apply plugin: 'java'

sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
compile 'org.ejml:simple:0.28'
}

0 comments on commit 1307f6e

Please sign in to comment.