Skip to content

Commit

Permalink
Add licensee (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
  • Loading branch information
hfhbd and hfhbd authored Aug 4, 2022
1 parent ec8c409 commit dd1e298
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 163 deletions.
11 changes: 9 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import app.cash.licensee.*
import org.jetbrains.dokka.gradle.*
import org.jetbrains.kotlin.gradle.dsl.*

/*
* Copyright 2020-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
Expand All @@ -13,6 +15,7 @@ plugins {
signing
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.7.10"
id("app.cash.licensee") version "1.5.0" apply false
}

repositories {
Expand All @@ -22,18 +25,18 @@ repositories {
subprojects {
plugins.apply("org.jetbrains.kotlin.multiplatform")
plugins.apply("org.jetbrains.dokka")
plugins.apply("app.cash.licensee")

repositories {
mavenCentral()
}

extensions.configure<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>("kotlin") {
the<KotlinMultiplatformExtension>().apply {
explicitApi()

sourceSets {
all {
languageSettings.progressiveMode = true
languageSettings.optIn("kotlin.RequiresOptIn")
languageSettings.optIn("kotlinx.uuid.InternalAPI")
}
}
Expand All @@ -54,6 +57,10 @@ subprojects {
externalDocumentationLink("https://kotlin.github.io/kotlinx.serialization/")
}
}

the<LicenseeExtension>().apply {
allow(spdxId = "Apache-2.0")
}
}

tasks.dokkaHtmlMultiModule.configure {
Expand Down
Loading

0 comments on commit dd1e298

Please sign in to comment.