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

493
Visualizações
Kotlin Gradle plugin: apiVersion vs languageVersion

Kotlin Gradle plugin contains compileKotlin task which can be configured by apiVersion and languageVersion parameters (doc):

compileKotlin {
    kotlinOptions {
        freeCompilerArgs = ['-Xjsr305=strict']
        jvmTarget = '1.8'
        languageVersion = '1.1'
        apiVersion = '1.1'
    }
}

Both parameters are used for compatibility with older Kotlin versions. Could somebody explain what is the difference between them? And what are use cases using each of them?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

apiVersion: Allow to use declarations only from the specified version of bundled libraries

languageVersion: Provide source compatibility with specified language version

You can see full documentation here: https://kotlinlang.org/docs/reference/using-gradle.html

and this reference: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html

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