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

Commit

Permalink
fix gradle distribution and package naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdubiel committed Jun 23, 2016
1 parent 7541878 commit 9ca125c
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 125 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.gradle
build/
gradle-app.setting
!gradle-wrapper.jar
.gradletasknamecache
/.idea
/gradle
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
dependencies {
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.1'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'pl.allegro.tech.build:axion-release-plugin:0.9.5'
classpath 'pl.allegro.tech.build:axion-release-plugin:1.3.4'
}
}

Expand Down
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Thu Jun 23 22:26:38 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip
46 changes: 25 additions & 21 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,30 @@
##
##############################################################################

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

Expand All @@ -30,6 +48,7 @@ die ( ) {
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
Expand All @@ -40,26 +59,11 @@ case "`uname`" in
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
Expand All @@ -85,7 +89,7 @@ location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
Expand Down
90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/groovy/com/pszymczyk/consul/ConsulStarter.groovy
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.pszymczyk.consul

import com.pszymczyk.consul.infrstructure.AntUnzip
import com.pszymczyk.consul.infrstructure.ConsulWaiter
import com.pszymczyk.consul.infrstructure.HttpBinaryRepository
import com.pszymczyk.consul.infrstructure.Ports
import com.pszymczyk.consul.infrastructure.AntUnzip
import com.pszymczyk.consul.infrastructure.ConsulWaiter
import com.pszymczyk.consul.infrastructure.HttpBinaryRepository
import com.pszymczyk.consul.infrastructure.Ports
import org.codehaus.groovy.runtime.IOGroovyMethods
import org.slf4j.Logger
import org.slf4j.LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.pszymczyk.consul

import com.pszymczyk.consul.infrstructure.Ports
import com.pszymczyk.consul.infrastructure.Ports

import java.nio.file.Files
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure
package com.pszymczyk.consul.infrastructure

import java.nio.file.Files
import java.nio.file.Paths
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure
package com.pszymczyk.consul.infrastructure

import com.pszymczyk.consul.EmbeddedConsulException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure
package com.pszymczyk.consul.infrastructure

public class HttpBinaryRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure;
package com.pszymczyk.consul.infrastructure;

class OsResolver {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure
package com.pszymczyk.consul.infrastructure

import org.codehaus.groovy.runtime.IOGroovyMethods

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pszymczyk.consul.infrstructure
package com.pszymczyk.consul.infrastructure

import com.pszymczyk.consul.EmbeddedConsulException
import spock.lang.Specification
Expand Down

0 comments on commit 9ca125c

Please sign in to comment.