File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,12 @@ plugins {
44
44
}
45
45
46
46
var flutterPluginVersion = providers.gradleProperty(" flutterPluginVersion" ).get()
47
- if (project.hasProperty(" dev-version" )) {
47
+ if (project.hasProperty(" dev" )) {
48
+ val latestVersion = changelog.getLatest().version
49
+ val majorVersion = latestVersion.substringBefore(' .' ).toInt()
50
+ val nextMajorVersion = majorVersion + 1
48
51
val datestamp = DateTimeFormatter .ofPattern(" yyyyMMdd" ).format(LocalDate .now())
49
- flutterPluginVersion = project.property( " dev-version " ).toString() + " -dev." + datestamp
52
+ flutterPluginVersion = " $nextMajorVersion .0 -dev.$ datestamp"
50
53
}
51
54
val ideaVersion = providers.gradleProperty(" ideaVersion" ).get()
52
55
val dartPluginVersion = providers.gradleProperty(" dartPluginVersion" ).get()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ echo "kokoro test finished"
20
20
21
21
echo " kokoro build start"
22
22
23
- ./gradlew buildPlugin -Pdev-version=88.0
23
+ ./gradlew buildPlugin -Pdev
24
24
25
25
echo " kokoro build finished"
26
26
You can’t perform that action at this time.
0 commit comments