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

494
Views
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 answers
Answer question

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 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!