Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions atomicfu-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
* Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

apply plugin: 'kotlin'
apply plugin: 'java-gradle-plugin'
plugins {
id 'kotlin'
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.16.0'
}

if (rootProject.ext.jvm_ir_enabled) {
kotlin.target.compilations.all {
Expand Down Expand Up @@ -73,3 +77,20 @@ task createClasspathManifest {
dependencies {
testRuntime files(createClasspathManifest)
}

gradlePlugin {
plugins {
create("kotlinx-atomicfu") {
id = "org.jetbrains.kotlinx.atomicfu"
displayName = "Kotlinx Atomicfu Plugin"
description = "The idiomatic way to use atomic operations in Kotlin"
implementationClass = "kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin"
}
}
}

pluginBundle {
website = "https://github.com/Kotlin/kotlinx.atomicfu"
vcsUrl = "https://github.com/Kotlin/kotlinx.atomicfu.git"
tags = ["kotlin", "atomic", "kotlinx"]
}