Skip to content

Commit db7e464

Browse files
committed
Upgrading Gradlew and Gradle JS
1 parent e983a13 commit db7e464

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

build.gradle

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath 'com.eriwen:gradle-js-plugin:0.3'
7+
classpath 'com.eriwen:gradle-js-plugin:1.0.2'
88
}
99
}
1010

@@ -22,10 +22,8 @@ repositories {
2222
mavenCentral()
2323
}
2424

25-
task clean(description: 'Cleans old artifacts') {
26-
doLast {
27-
ant.delete(dir: buildDir)
28-
}
25+
task clean(type: Delete) {
26+
delete buildDir
2927
}
3028

3129
task init(type: Directory, dependsOn: 'clean', description: 'Creates artifact output directories') {
@@ -36,7 +34,7 @@ task init(type: Directory, dependsOn: 'clean', description: 'Creates artifact ou
3634
}
3735

3836
task wrapper(type: Wrapper) {
39-
gradleVersion = '1.0-milestone-9'
37+
gradleVersion = '1.0'
4038
}
4139

4240
task jshintz(dependsOn: 'init', description: 'runs jshint on all non-test and lib JS files') {
@@ -56,15 +54,16 @@ task jsduck(type: Exec, dependsOn: 'init', description: 'Generates jsduck docume
5654

5755
minifyJs {
5856
dependsOn << 'init'
59-
ext.input = file(srcFile)
60-
ext.output = file(destFile)
61-
warningLevel = 'QUIET'
57+
source = file(srcFile)
58+
dest = file(destFile)
59+
closure {
60+
warningLevel = 'QUIET'
61+
}
6262
}
6363

6464
gzipJs {
65-
dependsOn << 'minifyJs'
66-
ext.input = file(destFile)
67-
ext.output = input
65+
source = minifyJs
66+
dest = file(destFile)
6867
}
6968

7069
task test(dependsOn: 'init') << {

gradle/wrapper/gradle-wrapper.jar

166 Bytes
Binary file not shown.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Apr 06 07:56:41 MDT 2012
2-
distributionBase=GRADLE_USER_HOME
3-
distributionPath=wrapper/dists
1+
#Thu Jun 28 06:45:52 MDT 2012
42
zipStoreBase=GRADLE_USER_HOME
3+
distributionBase=GRADLE_USER_HOME
4+
distributionUrl=http\://services.gradle.org/distributions/gradle-1.0-bin.zip
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip
6+
distributionPath=wrapper/dists

gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
101101
warn "Could not set maximum file descriptor limit: $MAX_FD"
102102
fi
103103
else
104-
warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT"
104+
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105105
fi
106106
fi
107107

108108
# For Darwin, add options to specify how the application appears in the dock
109109
if $darwin; then
110-
JAVA_OPTS="$JAVA_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110+
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111111
fi
112112

113113
# For Cygwin, switch paths to Windows format before running java

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy