mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
9 lines
340 B
Groovy
9 lines
340 B
Groovy
import com.yandex.div.gradle.Version
|
|
|
|
def versionFile = project.layout.projectDirectory.file('./../../version')
|
|
def fullVersion = project.providers.fileContents(versionFile).asText.get()
|
|
|
|
def (major, minor, patch) = fullVersion.split('\\.')
|
|
|
|
ext.divkitVersion = new Version(project, major.toInteger(), minor.toInteger(), patch.toInteger())
|