Skip to content

Commit 51dfa8e

Browse files
authored
Merge pull request #1 from fabianishere/feature/bintray
feat: Add plugin to Bintray repository
2 parents 94ae4df + 2bcfbf5 commit 51dfa8e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

plugin-gradle/build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ plugins {
2020
id "org.jetbrains.kotlin.jvm" version "1.2.41"
2121
id "org.jmailen.kotlinter" version "1.12.0"
2222
id "com.gradle.plugin-publish" version "0.9.10"
23+
id "com.jfrog.bintray" version "1.8.0"
2324
}
2425

2526
repositories {
@@ -75,3 +76,26 @@ pluginBundle {
7576
groupId = "nl.fabianm.kotlin.plugin.generated"
7677
}
7778
}
79+
80+
bintray {
81+
user = project.hasProperty('bintray.user') ? project.property('bintray.user') : System.getenv('BINTRAY_USER')
82+
key = project.hasProperty('bintray.key') ? project.property('bintray.key') : System.getenv('BINTRAY_KEY')
83+
pkg {
84+
repo = 'kotlin-plugin-generated'
85+
name = project.name
86+
userOrg = 'fabianishere'
87+
licenses = ['Apache-2.0']
88+
desc = 'A Kotlin compiler plugin that annotates Kotlin-generated methods to signify to code analyzers' +
89+
' that these methods have been generated by the compiler.'
90+
websiteUrl = 'https://github.com/fabianishere/kotlin-plugin-generated'
91+
issueTrackerUrl = 'https://github.com/fabianishere/kotlin-plugin-generated/issues'
92+
vcsUrl = 'https://github.com/fabianishere/kotlin-plugin-generated.git'
93+
licenses = ['Apache-2.0']
94+
githubRepo = 'fabianishere/kotlin-plugin-generated'
95+
githubReleaseNotesFile = 'README.md'
96+
}
97+
}
98+
99+
bintrayUpload.doFirst {
100+
publications = ['pluginMaven', 'generatedPluginMarkerMaven']
101+
}

0 commit comments

Comments
 (0)