Skip to content

Commit 9586983

Browse files
committed
Fix the build for Ubuntu: ensure method use instead of property access in the gradle script.
1 parent cc70e3b commit 9586983

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

activejdbc-gradle-plugin/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ class TestProjectBuild extends Exec {
7575

7676
@Override
7777
protected void exec() {
78-
workingDir = 'test-project'
79-
78+
workingDir('test-project')
79+
def buildArgs = []
8080
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
81-
commandLine = ['cmd', '/c', '..\\gradlew.bat']
81+
executable('cmd')
82+
buildArgs += ['/c', '..\\gradlew.bat']
8283
} else {
83-
commandLine = ['../gradlew']
84+
executable('../gradlew')
8485
}
8586

8687
def daemonArg = (useDaemon) ? '--daemon' : '--no-daemon'
87-
[daemonArg, '--stacktrace', "-Pactivejdbc.version=${project.version}", 'test'].each { arg ->
88-
commandLine = commandLine + arg
89-
}
88+
buildArgs += [daemonArg, '--stacktrace', "-Pactivejdbc.version=${project.version}", 'test']
89+
args(buildArgs)
9090

9191
super.exec()
9292
}

activejdbc-gradle-plugin/test-project/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ buildscript {
22
repositories {
33
mavenCentral()
44
mavenLocal()
5+
maven { url 'http://repo.javalite.io' }
56
}
67
dependencies {
78
classpath "org.javalite:activejdbc-gradle-plugin:${property('activejdbc.version')}"

0 commit comments

Comments
 (0)