Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ repositories {
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.testng:testng:6.14.3'
}

task sourcesJar(type: Jar) {
Expand Down
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 @@
#Fri Aug 22 20:02:41 CDT 2014
#Wed Dec 19 17:14:16 EST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
6 changes: 1 addition & 5 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/groovy/us/kirchmeier/capsule/task/Capsule.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Capsule extends Jar {
* A filter, used to limit the capsule classes if the entire jar is not needed.
* <p>The closure delegates to a {@link org.gradle.api.file.CopySpec}.</p>
*/
Closure capsuleFilter
Closure capsuleFilter = {}

/**
* The caplet configuration describing any caplet classes.
Expand Down
8 changes: 5 additions & 3 deletions src/test/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ project('subproject') {
}
}

task runScript() << {
if(!project.hasProperty('testScript')) throw new Exception("Missing -PtestScript=...")
evaluate(new File(project.property('testScript')))
task runScript() {
doLast {
if(!project.hasProperty('testScript')) throw new Exception("Missing -PtestScript=...")
evaluate(new File(project.property('testScript')))
}
}

def buildAllTask = task('buildAll')
Expand Down
2 changes: 1 addition & 1 deletion src/test/gradle/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
6 changes: 4 additions & 2 deletions src/test/gradle/subproject/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
task hello << {
println "Hello, I am a subproject"
task hello {
doLast {
println "Hello, I am a subproject"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public class CapsuleManifestTest {
'com.foo:Calculator-Adware:1.3:annoying(com.foo.optional:*) ' +
'com.foo:Calculator-Ajax:1.1:standalone ' +
'com.foo:Calculator-Core:1.0 ' +
'com.foo:Calculator-Mongo:1.2(com.bar:common,*:shared)'
'com.foo:Calculator-Mongo:1.2(*:shared,com.bar:common)'

assert expectedDeps == result[null]['Dependencies']
}
Expand Down
22 changes: 10 additions & 12 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@
set -eu

VERSIONS=(
2.14.1
2.13
2.12
2.11
2.10
2.9
2.8
2.7
2.6
2.5
2.4
5.0
4.10
4.9
4.8
4.7
4.6
4.5
4.4
4.3
)

main(){
Expand Down Expand Up @@ -56,4 +54,4 @@ write_wrapper_props_file(){
> gradle/wrapper/gradle-wrapper.properties
}

main
main