Skip to content

Commit

Permalink
Prepare 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Brooks committed Feb 17, 2021
1 parent de51ea8 commit 700f510
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
8 changes: 1 addition & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ buildscript {
}

allprojects {
val buildProperties = run {
val properties = Properties()
FileInputStream("$rootDir/build.properties").use(properties::load)
properties
}

group = "com.jzbrooks"
version = buildProperties["version"]?.toString() ?: ""
version = properties["vgo_version"]?.toString() ?: ""

repositories {
mavenLocal()
Expand Down
1 change: 0 additions & 1 deletion build.properties

This file was deleted.

5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

## 1.4.1
_02.16.2021_

* Added: A new type for the `shrinkVectorArtwork` task

## 1.4.0
_02.15.2021_

Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vgo_version=1.4.1
17 changes: 11 additions & 6 deletions vgo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ tasks {
""".trimMargin()
)


append(" const val ")
append("VERSION")
append(" = \"")
append(project.version)
appendln('"')
val vgoProperties = project.properties
.filter { it.key.startsWith("vgo_") }
.mapKeys { it.key.removePrefix("vgo_") }

for (property in vgoProperties) {
append(" const val ")
append(property.key.toUpperCase())
append(" = \"")
append(property.value)
appendln('"')
}

appendln("}")
}
Expand Down

0 comments on commit 700f510

Please sign in to comment.