Skip to content

Commit 991bece

Browse files
committed
add plugin publishing configuration
1 parent de4e556 commit 991bece

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

atomicfu-gradle-plugin/build.gradle

+31
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
* Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
buildscript {
6+
repositories {
7+
maven {
8+
url "https://plugins.gradle.org/m2/"
9+
}
10+
}
11+
dependencies {
12+
classpath "com.gradle.publish:plugin-publish-plugin:0.16.0"
13+
}
14+
}
15+
516
apply plugin: 'kotlin'
617
apply plugin: 'java-gradle-plugin'
18+
apply plugin: 'maven-publish'
19+
apply plugin: "com.gradle.plugin-publish"
720

821
if (rootProject.ext.jvm_ir_enabled) {
922
kotlin.target.compilations.all {
@@ -73,3 +86,21 @@ task createClasspathManifest {
7386
dependencies {
7487
testRuntime files(createClasspathManifest)
7588
}
89+
90+
gradlePlugin {
91+
plugins {
92+
create("atomicfu") {
93+
id = "kotlinx-atomicfu"
94+
displayName = "Kotlinx Atomicfu Plugin"
95+
description = "The idiomatic way to use atomic operations in Kotlin "
96+
implementationClass = "kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin"
97+
}
98+
}
99+
}
100+
101+
pluginBundle {
102+
website = "https://github.com/Kotlin/kotlinx.atomicfu"
103+
vcsUrl = "https://github.com/Kotlin/kotlinx.atomicfu"
104+
tags = ["kotlin", "atomic", "kotlinx"]
105+
}
106+

0 commit comments

Comments
 (0)