Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda