Skip to content

Commit

Permalink
Remove version.properties creation at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Feb 24, 2024
1 parent fcbdc8d commit 47d26fe
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions inngest-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import java.io.FileOutputStream
import java.util.Properties

description = "Inngest SDK"
version = "0.0.1-SNAPSHOT"

Expand All @@ -21,16 +18,6 @@ dependencies {
testImplementation(kotlin("test"))
}

val generatedVersionDir = "$buildDir/generated-version"

sourceSets {
main {
kotlin {
output.dir(generatedVersionDir)
}
}
}

tasks.jar {
manifest {
attributes(
Expand All @@ -42,21 +29,6 @@ tasks.jar {
}
}

tasks.register("generateVersionProperties") {
doLast {
val propertiesFile = file("$generatedVersionDir/version.properties")
propertiesFile.parentFile.mkdirs()
val properties = Properties()
properties.setProperty("version", "$version")
val out = FileOutputStream(propertiesFile)
properties.store(out, null)
}
}

tasks.named("processResources") {
dependsOn("generateVersionProperties")
}

tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
Expand Down

0 comments on commit 47d26fe

Please sign in to comment.