Skip to content

Commit

Permalink
Upgrade to Gradle 5.0
Browse files Browse the repository at this point in the history
 - Fixed missing Gradle version specifications in two tests.

 - Added missing settings.gradle in the test projects because Gradle
   5.0 starts to complain about it.
  • Loading branch information
zhangkun83 committed Dec 28, 2018
1 parent 1a64a64 commit cd8e7bb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class ProtobufJavaPluginTest extends Specification {
.withProjectDir(projectDir)
.withArguments('build')
.withDebug(true)
.withGradleVersion(gradleVersion)
.build()
then: "it succeed"
Expand All @@ -111,6 +112,7 @@ class ProtobufJavaPluginTest extends Specification {
.withProjectDir(projectDir)
.withArguments('build')
.withDebug(true)
.withGradleVersion(gradleVersion)
.build()
then: "it succeed"
Expand Down Expand Up @@ -212,7 +214,7 @@ class ProtobufJavaPluginTest extends Specification {
then: "it succeed"
result.task(":idea").outcome == TaskOutcome.SUCCESS
Node imlRoot = new XmlParser().parse(projectDir.toPath().resolve("testIdea.iml").toFile())
Node imlRoot = new XmlParser().parse(projectDir.toPath().resolve("testProject.iml").toFile())
Collection rootMgr = imlRoot.component.findAll { it.'@name' == 'NewModuleRootManager' }
assert rootMgr.size() == 1
assert rootMgr.content.sourceFolder.size() == 1
Expand Down
1 change: 1 addition & 0 deletions testProject/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProject'
1 change: 1 addition & 0 deletions testProjectCustomProtoDir/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProjectCustomProtoDir'
1 change: 1 addition & 0 deletions testProjectDependent/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProjectDependent'
1 change: 1 addition & 0 deletions testProjectJavaAndKotlin/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProjectJavaAndKotlin'
1 change: 1 addition & 0 deletions testProjectKotlin/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProjectKotlin'
1 change: 1 addition & 0 deletions testProjectLite/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'testProjectLite'

0 comments on commit cd8e7bb

Please sign in to comment.