repositories:
  - id: amper-maven
    url: https://packages.jetbrains.team/maven/p/amper/amper
    resolve: false
    publish: true
    credentials:
      file: ../local.properties
      usernameKey: space.username
      passwordKey: space.password
  - id: mavenCentral
    url: https://cache-redirector.jetbrains.com/repo.maven.apache.org/maven2
  - id: googleRepo
    url: https://cache-redirector.jetbrains.com/dl.google.com/dl/android/maven2
  - id: mavenLocal
    url: mavenLocal
    resolve: false
    publish: true
  - id: gradle
    url: https://cache-redirector.jetbrains.com/plugins.gradle.org/m2
  - id: intellij-repository
    url: https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases
  - id: intellij-dependencies
    url: https://cache-redirector.jetbrains.com/packages.jetbrains.team/maven/p/ij/intellij-dependencies
  - id: libs-releases
    url: https://repo.gradle.org/gradle/libs-releases
  - id: teamcity-repository
    url: https://cache-redirector.jetbrains.com/download.jetbrains.com/teamcity-repository
  - id: amper-compose-hot-reload
    url: https://packages.jetbrains.team/maven/p/amper/compose-hot-reload

settings:
  publishing:
    enabled: false # temporary crutch before we change the default value to 'false'
    group: org.jetbrains.amper
    version: 1.0-SNAPSHOT

  kotlin:
    progressiveMode: true
    powerAssert: enabled
    freeCompilerArgs:
      - -Xannotation-default-target=param-property
      - -Xconsistent-data-class-copy-visibility
      - -Xcontext-parameters
      - -Xrender-internal-diagnostic-names
      - -Wextra
    optIns:
      - kotlin.contracts.ExperimentalContracts
      - kotlin.io.path.ExperimentalPathApi
      - kotlin.time.ExperimentalTime
  jvm:
    release: 21
  java:
    compileIncrementally: false # Disabled because of AMPER-4868

test-settings:
  kotlin:
    optIns:
      - org.jetbrains.amper.frontend.schema.DiscouragedDirectDefaultVersionAccess
