File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ tasks.register("detectVersionsForTC") {
6
6
}
7
7
}
8
8
9
- private fun readProperties (propertiesFile : java.io.File ): Map <String , String > =
9
+ fun readProperties (propertiesFile : java.io.File ): Map <String , String > =
10
10
propertiesFile.readText().lineSequence()
11
11
.map { it.split(" =" ) }
12
12
.filter { it.size == 2 }
13
13
.map { it[0 ].trim() to it[1 ].trim() }.toMap()
14
14
15
- private fun detectVersion (): String {
16
- val baseVersion = readProperties(" ../gradle.properties" )[" baseVersion" ]
15
+ fun detectVersion (): String {
16
+ val baseVersion = readProperties(file( " ../gradle.properties" ) )[" baseVersion" ]
17
17
val buildCounter = project.property(" build.counter" ) as String
18
18
val devCounter = project.findProperty(" build.devCounter" ) as ? String
19
19
val isOnProtectedBranch = (project.property(" build.branch" ) as String ) == " master"
You can’t perform that action at this time.
0 commit comments