Skip to content

Commit

Permalink
Fix missing main class in build.gradle for the configuration server
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusoe committed Jan 14, 2022
1 parent 740beff commit 9988057
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/inspectit-ocelot-configurationserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,22 @@ bootJar {
archivesBaseName = 'inspectit-ocelot-configurationserver-noui'
version = "${buildVersion}"

manifest {
attributes 'Start-Class': "${serverMainClass}".toString()
}
mainClassName = "${serverMainClass}"
}

/**
* Builds the configuration server and the web frontend.
*/
task bootJarWithFrontend(type: org.springframework.boot.gradle.tasks.bundling.BootJar) {
group = "build"
archivesBaseName = 'inspectit-ocelot-configurationserver'
version = "${buildVersion}"

from("${project.projectDir}/../inspectit-ocelot-configurationserver-ui/out") {
into('static/ui')
}

manifest {
attributes 'Start-Class': "${serverMainClass}".toString()
}
mainClassName = "${serverMainClass}"

with bootJar
}
Expand Down

0 comments on commit 9988057

Please sign in to comment.