Skip to content

Commit

Permalink
reverted build.gradle
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed Oct 23, 2024
1 parent d185114 commit 8fcc72d
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,37 +170,20 @@ test {
}

/** Update version number for backend app and modules */
tasks.register('buildInfo') {
doLast {
def info = """\
task buildInfo { doLast {
def info = """\
name=${project.name}
group=${project.group}
version=${version}
commitId=${project.property('commitId')}
""".stripIndent().toString()
def f = file("${buildDir}/resources/main/META-INF/build-info.properties")
f.parentFile.mkdirs()
f.text = info
}
}
def f = file("${buildDir}/resources/main/META-INF/build-info.properties")
f.parentFile.mkdirs()
f.text = info
} }
buildInfo.dependsOn processResources
compileGroovy.dependsOn buildInfo

tasks.register('tspInstall', Exec) {
description = 'Install TypeSpec dependencies'
group = 'TypeSpec'
workingDir "$projectDir/src/main/resources/typespec"
commandLine 'npx', 'tsp', 'install'
}
tasks.register('tspCompile', Exec) {
description = 'Compile TypeSpec files'
group = 'TypeSpec'
workingDir "$projectDir/src/main/resources/typespec"
commandLine 'npx', 'tsp', 'compile', '.'
}
tspCompile.dependsOn tspInstall
build.dependsOn tspCompile

jacoco {
toolVersion '0.8.12'
}
Expand Down

0 comments on commit 8fcc72d

Please sign in to comment.