Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
How to convert bootRepackage task to kotlin DSL in gradle 5.0.0?

Looking to create a spring boot fat jar, but unsure how to convert the bootRepackage task found here in my build.kts file:

bootRepackage {
    mainClass = 'demo.Application'
}
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

New day, new discovery. Spring Boot docs show that the bootRepackage task has been replaced by bootJar in 2017 and the bootJar task comes out of the box with the spring boot gradle plugin.

The bootRepackage task has been replaced with bootJar and bootWar tasks for building executable jars and wars respectively

build.gradle.kts

// option 1
tasks {
    getByName<BootJar>("bootJar") {
        classifier = "boot"
        mainClassName = "com.example.Application"
    }
}

// option 2
tasks.getByName<BootJar>("bootJar") {
    classifier = "boot"
    mainClassName = "com.example.Application"
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!