diff --git a/atomicfu-gradle-plugin/build.gradle b/atomicfu-gradle-plugin/build.gradle index 28091b61..3f326b35 100644 --- a/atomicfu-gradle-plugin/build.gradle +++ b/atomicfu-gradle-plugin/build.gradle @@ -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 { @@ -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"] +} \ No newline at end of file