Skip to content
Snippets Groups Projects
Select Git revision
  • af4484ebeb085d6260b781e9b55bfdcfb426437b
  • master default
  • method_check
  • custom_prefix
  • package
  • cookies
  • v2.1.1
  • v2.1.0
  • v2.1.0-rc5
  • v2.1.0-rc4
  • v2.1.0-rc3
  • v2.1.0-rc2
  • v2.1.0-rc1
  • v2.0.7
  • v2.0.6
  • v2.0.5
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.2.8
  • v1.2.7
  • v1.2.6
  • v1.2.5
  • v1.2.4
26 results

user_context.go

Blame
  • build.gradle.kts 1.43 KiB
    /*
     * Kotlin Bitflags
     *
     * Copyright (c) 2021 Janne Mareike Koschinski
     *
     * This Source Code Form is subject to the terms of the Mozilla Public License,
     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
     * obtain one at https://mozilla.org/MPL/2.0/.
     */
    
    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    
    plugins {
      kotlin("jvm") version "1.4.21"
      id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
      id("org.jetbrains.dokka") version "1.4.20"
      id("maven-publish")
      id("com.vanniktech.maven.publish") version "0.13.0"
    }
    
    repositories {
      mavenCentral()
      exclusiveContent {
        forRepository {
          maven {
            name = "JCenter"
            setUrl("https://jcenter.bintray.com/")
          }
        }
        filter {
          // Required for Dokka
          includeModule("com.soywiz.korlibs.korte", "korte-jvm")
          includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
          includeGroup("org.jetbrains.dokka")
          includeModule("org.jetbrains", "markdown")
        }
      }
    }
    
    dependencies {
      testImplementation(kotlin("test-junit5"))
    
      val junit5Version: String by project
      testImplementation("org.junit.jupiter", "junit-jupiter-api", junit5Version)
      testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junit5Version)
    }
    
    tasks.test {
      useJUnitPlatform()
    }
    
    tasks.withType<KotlinCompile> {
      kotlinOptions {
        jvmTarget = "1.8"
        freeCompilerArgs = listOf(
          "-Xopt-in=kotlin.ExperimentalUnsignedTypes"
        )
      }
    }